Skip to main content

Crate sim_lib_lang_python

Crate sim_lib_lang_python 

Source
Expand description

Thin, direct Python core profile over lowered codec/python expressions.

This crate intentionally has no instruction format, compiler, or foreign runtime. The codec owns syntax; this profile evaluates its stable token lowering and composes the shared binding, control, mutation, sequence, dispatch, number, arena, and tracing-collector contracts.

Structs§

Annotation
Retained annotation value and optional source/browse provenance.
DescriptorHook
Hook token used to prove descriptor receiver behavior.
DynamicAdmission
Host-authored authority envelope for dynamic Python source.
DynamicPython
Capability-gated Python eval and exec with no ambient authority.
MatchCase
One ordered Python structural-match case composed from a canonical Shape.
PythonClass
A declared Python class and its C3-linearized bases.
PythonEvalPolicy
Thin direct evaluator policy. Its profile evidence proves the codec entry and organ set.
PythonEvidenceCase
One frozen differential or regression case.
PythonException
A checked Python exception with explicit chaining fields.
PythonExceptionGroup
A non-empty nested Python exception group.
PythonFidelity
Independently reported fidelity dimensions; never a blanket compatibility claim.
PythonFunction
Directly interpreted Python function with captured lexical values.
PythonGenerator
Python send/throw/close policy backed by the shared resumable frame.
PythonHeap
Python managed heap composed from the shared arena and optional collector.
PythonIterator
Checked Python iterator state over an owned sequence.
PythonLibraryManifest
Generated builtin and source-library coverage for the checked matrix.
PythonManagedObject
Cyclic mutable Python payload held exclusively in the shared managed arena.
PythonModuleAdmission
Host-authored storage and authority envelope for one Python module load.
PythonModulePolicy
Python policy wrapper around the canonical source-module lifecycle.
PythonObjectSpace
Python class and instance policy using shared property mechanics.
PythonSurface
One explicit builtin or curated source-library member.

Enums§

AttributeError
Checked attribute failure.
ClassError
Failure to construct a consistent class hierarchy.
MatchOutcome
Result of ordered structural matching.
PythonGeneratorError
Generator protocol or guest failure.
PythonGeneratorStep
Observable Python generator transition.
PythonHeapPolicy
Explicit reclaim policy. Tracing is the standard; retention is opt-in and inspectable.
PythonManagedKind
Language-visible role of a managed Python allocation.
PythonObjectValue
Value stored by the checked object model.
PythonSurfaceState
Whether one public Python surface is implemented by the checked profile.
PythonValue
Values in the declared Python scalar/container core.

Constants§

PYTHON_EVIDENCE_CASES
Frozen cases spanning the profile’s claimed and refused behavior.
PYTHON_EXTERNAL_ORACLE
Exact external oracle used to freeze simple differential expectations. It is evidence only: never linked, spawned, imported, or used at runtime.
PYTHON_FIDELITY
Honest public fidelity statement for this profile.
PYTHON_OBJECT_CONTROL_GAPS
Deliberately unsupported Python object and control edges.

Statics§

RECIPES
Cookbook recipes for this profile, embedded at build time.

Traits§

ContextManager
Policy seam for Python’s synchronous context-manager protocol.

Functions§

install_python_core_profile
Install the profile. Collection is a runtime policy option, never a load prerequisite.
match_expr
Match an expression in declaration order using Shape captures and guards.
python_core_matrix_row
Build the Python core conformance row from source-level cases.
python_core_profile
Build the Python core profile, including capabilities and inspectable gaps.
python_core_source_cases
Checked source cases entering through codec/python.
python_library_manifest
Generate the public library manifest directly from the checked Python row.
python_profile_symbol
Stable symbol for the thin Python core profile.
run_with_context
Run one synchronous context extent, guaranteeing exit on both paths.

Type Aliases§

PythonCoroutine
A scheduler-free Python coroutine frame using the same checked send/throw transition contract as a generator.