• Home
  • Raw
  • Download

Lines Matching +full:python +full:- +full:format

1 :mod:`marshal` --- Internal Python object serialization
5 :synopsis: Convert Python objects to streams of bytes and back (with different
8 --------------
10 This module contains functions that can read and write Python values in a binary
11 format. The format is specific to Python, but independent of machine
12 architecture issues (e.g., you can write a Python value to a file on a PC,
13 transport the file to a Sun, and read it back there). Details of the format are
14 undocumented on purpose; it may change between Python versions (although it
22 transfer of Python objects through RPC calls, see the modules :mod:`pickle` and
24 writing the "pseudo-compiled" code for Python modules of :file:`.pyc` files.
25 Therefore, the Python maintainers reserve the right to modify the marshal format
27 de-serializing Python objects, use the :mod:`pickle` module instead -- the
39 Not all Python object types are supported; in general, only objects whose value
40 is independent from a particular invocation of Python can be written and read by
48 For format *version* lower than 3, recursive lists, sets and dictionaries cannot
52 bytes-like objects.
63 :exc:`ValueError` exception is raised --- but garbage data will also be written
66 The *version* argument indicates the data format that ``dump`` should use
69 .. audit-event:: marshal.dumps value,version marshal.dump
75 (e.g. because the data has a different Python version's incompatible marshal
76 format), raise :exc:`EOFError`, :exc:`ValueError` or :exc:`TypeError`. The
79 .. audit-event:: marshal.load "" marshal.load
98 The *version* argument indicates the data format that ``dumps`` should use
101 .. audit-event:: marshal.dumps value,version marshal.dump
106 Convert the :term:`bytes-like object` to a value. If no valid value is found, raise
110 .. audit-event:: marshal.loads bytes marshal.load
122 Indicates the format that the module uses. Version 0 is the historical
123 format, version 1 shares interned strings and version 2 uses a binary format
132 Modula-3 (amongst others), who use the term "marshalling" for shipping of data
133 around in a self-contained form. Strictly speaking, "to marshal" means to