module documentation

Parser for the "marshal" file format. This file is adapted from pypy/lib_pypy/_marshal.py. This module contains functions that can read and write Python values in a binary format. The format is specific to Python, but independent of machine architecture issues (e.g., you can write a Python value to a file on a PC, transport the file to a Sun, and read it back there). Details of the format may change between Python versions.

Class CodeType Version-agnostic types.CodeType.
Function loads Undocumented
Constant CALL_FUNCTION_EX_HAS_KWARGS Undocumented
Constant FVC_ASCII Undocumented
Constant FVC_MASK Undocumented
Constant FVC_NONE Undocumented
Constant FVC_REPR Undocumented
Constant FVC_STR Undocumented
Constant FVS_HAVE_SPEC Undocumented
Constant FVS_MASK Undocumented
Constant MAKE_FUNCTION_HAS_ANNOTATIONS Undocumented
Constant MAKE_FUNCTION_HAS_FREE_VARS Undocumented
Constant MAKE_FUNCTION_HAS_KW_DEFAULTS Undocumented
Constant MAKE_FUNCTION_HAS_POS_DEFAULTS Undocumented
Constant REF Undocumented
Constant TYPE_ASCII Undocumented
Constant TYPE_ASCII_INTERNED Undocumented
Constant TYPE_BINARY_COMPLEX Undocumented
Constant TYPE_BINARY_FLOAT Undocumented
Constant TYPE_CODE Undocumented
Constant TYPE_COMPLEX Undocumented
Constant TYPE_DICT Undocumented
Constant TYPE_ELLIPSIS Undocumented
Constant TYPE_FALSE Undocumented
Constant TYPE_FLOAT Undocumented
Constant TYPE_FROZENSET Undocumented
Constant TYPE_INT Undocumented
Constant TYPE_INT64 Undocumented
Constant TYPE_INTERNED Undocumented
Constant TYPE_LIST Undocumented
Constant TYPE_LONG Undocumented
Constant TYPE_NONE Undocumented
Constant TYPE_NULL Undocumented
Constant TYPE_REF Undocumented
Constant TYPE_SET Undocumented
Constant TYPE_SHORT_ASCII Undocumented
Constant TYPE_SHORT_ASCII_INTERNED Undocumented
Constant TYPE_SMALL_TUPLE Undocumented
Constant TYPE_STOPITER Undocumented
Constant TYPE_STRING Undocumented
Constant TYPE_STRINGREF Undocumented
Constant TYPE_TRUE Undocumented
Constant TYPE_TUPLE Undocumented
Constant TYPE_UNICODE Undocumented
Constant TYPE_UNKNOWN Undocumented
Class _LoadMarshal Stateful loader for marshalled files.
Class _NULL Used internally, e.g. as a sentinel in dictionary entry lists.
def loads(s, python_version): (source)

Undocumented

CALL_FUNCTION_EX_HAS_KWARGS: int = (source)

Undocumented

Value
1
FVC_ASCII: int = (source)

Undocumented

Value
3
FVC_MASK: int = (source)

Undocumented

Value
3
FVC_NONE: int = (source)

Undocumented

Value
0
FVC_REPR: int = (source)

Undocumented

Value
2

Undocumented

Value
1
FVS_HAVE_SPEC: int = (source)

Undocumented

Value
4
FVS_MASK: int = (source)

Undocumented

Value
4
MAKE_FUNCTION_HAS_ANNOTATIONS: int = (source)

Undocumented

Value
4
MAKE_FUNCTION_HAS_FREE_VARS: int = (source)

Undocumented

Value
8
MAKE_FUNCTION_HAS_KW_DEFAULTS: int = (source)

Undocumented

Value
2
MAKE_FUNCTION_HAS_POS_DEFAULTS: int = (source)

Undocumented

Value
1

Undocumented

Value
128
TYPE_ASCII: int = (source)

Undocumented

Value
97
TYPE_ASCII_INTERNED: int = (source)

Undocumented

Value
65
TYPE_BINARY_COMPLEX: int = (source)

Undocumented

Value
121
TYPE_BINARY_FLOAT: int = (source)

Undocumented

Value
103
TYPE_CODE: int = (source)

Undocumented

Value
99
TYPE_COMPLEX: int = (source)

Undocumented

Value
120
TYPE_DICT: int = (source)

Undocumented

Value
123
TYPE_ELLIPSIS: int = (source)

Undocumented

Value
46
TYPE_FALSE: int = (source)

Undocumented

Value
70
TYPE_FLOAT: int = (source)

Undocumented

Value
102
TYPE_FROZENSET: int = (source)

Undocumented

Value
62
TYPE_INT: int = (source)

Undocumented

Value
105
TYPE_INT64: int = (source)

Undocumented

Value
73
TYPE_INTERNED: int = (source)

Undocumented

Value
116
TYPE_LIST: int = (source)

Undocumented

Value
91
TYPE_LONG: int = (source)

Undocumented

Value
108
TYPE_NONE: int = (source)

Undocumented

Value
78
TYPE_NULL: int = (source)

Undocumented

Value
48
TYPE_REF: int = (source)

Undocumented

Value
114
TYPE_SET: int = (source)

Undocumented

Value
60
TYPE_SHORT_ASCII: int = (source)

Undocumented

Value
122
TYPE_SHORT_ASCII_INTERNED: int = (source)

Undocumented

Value
90
TYPE_SMALL_TUPLE: int = (source)

Undocumented

Value
41
TYPE_STOPITER: int = (source)

Undocumented

Value
83
TYPE_STRING: int = (source)

Undocumented

Value
115
TYPE_STRINGREF: int = (source)

Undocumented

Value
82
TYPE_TRUE: int = (source)

Undocumented

Value
84
TYPE_TUPLE: int = (source)

Undocumented

Value
40
TYPE_UNICODE: int = (source)

Undocumented

Value
117
TYPE_UNKNOWN: int = (source)

Undocumented

Value
63