Skip to documentation
SLOP

tiny.python.spec

Reference tiny.python spec

Defined in tiny.python.

The constants below name the one Python version whose subset the package implements and link to its documentation.

API (4)

Types and contracts

Public types and contracts.

Values and defaults

Public values and defaults.

No direct callersNo direct callstiny.pythonspec
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/python/src/root.zig:87

zig
pub const spec = @import("spec.zig");

Source: lib/python/src/spec.zig

zig
//! The constants below name the one Python version whose subset the package implements and link to//! its documentation. Python changes between versions, so a reader who checks what a construct//! should do needs to know which version's rules apply. The target is Python 3.14.0, and its rules//! are written in the [Python 3.14 language reference](https://docs.python.org/3.14/reference/) and//! the [Python 3.14 library reference](https://docs.python.org/3.14/library/). The version,//! `language`, is recorded as three numbers. The two addresses, `reference` and `library`, sit//! beside it as strings./// A Python release number in three parts: major, minor and micro. `language` is the one value of/// this type in the package, so a caller reads the targeted release as numbers.pub const Version = struct {    /// The major version number, 3 in `language`.    major: u8,    /// The minor version number, 14 in `language`.    minor: u8,    /// The micro version number, 0 in `language`.    micro: u8,};/// The Python release this package targets: 3.14.0. A caller or tool that needs the release as data/// reads this constant. The package implements a subset of this release.pub const language = Version{    .major = 3,    .minor = 14,    .micro = 0,};/// The address of the Python 3.14 language reference, for a reader who needs the rules that the/// package's syntax and meaning follow. The reference defines the syntax and meaning of the/// language. The package follows the reference for the part of the language it supports.pub const reference = "https://docs.python.org/3.14/reference/";/// The address of the Python 3.14 library reference, for a reader who needs the documented behavior/// of a built-in function the package provides. The library reference documents Python's built-in/// functions and types. The package's built-in functions carry the names of Python's: `dict`,/// `enumerate`, `iter`, `len`, `list`, `next`, `range`, `reversed` and `tuple`.pub const library = "https://docs.python.org/3.14/library/";

Audit

Definitions5
Public names5
Members3
Version26.7.0
Revisiondaab053ee433