Debian Codegraph @

pypy/module/marshal/moduledef.py

raw symbols SCIP
1 # Package initialisation
2 from pypy.interpreter.mixedmodule import MixedModule
3
4 class Module(MixedModule):
5 """
6 This module contains functions that can read and write Python values in
7 a binary format. The format is specific to Python, but independent of
8 machine architecture issues.
9
10 Not all Python object types are supported; in general, only objects
11 whose value is independent from a particular invocation of Python can be
12 written and read by this module. The following types are supported:
13 None, integers, floating point numbers, strings, bytes, bytearrays,
14 tuples, lists, sets, dictionaries, and code objects, where it
15 should be understood that tuples, lists and dictionaries are only
16 supported as long as the values contained therein are themselves
17 supported; and recursive lists and dictionaries should not be written
18 (they will cause infinite loops).
19
20 Variables:
21
22 version -- indicates the format that the module uses. Version 0 is the
23 historical format, version 1 shares interned strings and version 2
24 uses a binary format for floating point numbers.
25 Version 3 shares common object references (New in version 3.4).
26 """
27
28 appleveldefs = {
29 }
30
31 interpleveldefs = {
32 'dump' : 'interp_marshal.dump',
33 'dumps' : 'interp_marshal.dumps',
34 'load' : 'interp_marshal.load',
35 'loads' : 'interp_marshal.loads',
36 'version' : 'space.newint(interp_marshal.Py_MARSHAL_VERSION)',
37 }