Expand description
Cross-interpreter object sharing and exception snapshots (XI data).
Interpreters do not share PyObject graphs. Shareable values are converted
to an interpreter-neutral payload and rebuilt in the destination.
Structs§
- ExcInfo
- Snapshot of an exception that can be rebuilt in another interpreter.
- Pickled
Data - Pickled bytes and the originating script, without interpreter-owned references.
- Shared
Queue Id - A queue reference held by cross-interpreter data. Cloning takes another reference and dropping releases one.
Enums§
- Fallback
xidata_fallback_t: what to do with an object that has no XI data support.- Shared
Value - Interpreter-neutral payload that can be materialized in any interpreter
sharing the process-wide
crate::Context. - Unbound
Op - Unbound-item ops (
UNBOUND_REMOVE/UNBOUND_ERROR/UNBOUND_REPLACE).
Functions§
- apply_
shared_ ns - is_
running - is_
shareable - Exact-type shareable check used by
_interpreters.is_shareable. - script_
code - Extract a script code object from source text / function / code object.
- utf8_
key - Encode a namespace key as UTF-8, rejecting non-strings and lone surrogates.
- verify_
script verify_script: a script takes no arguments and returns only None.