Lines Matching refs:pickle

1 :mod:`pickletools` --- Tools for pickle developers
5 :synopsis: Contains extensive comments about the pickle protocols and
6 pickle-machine opcodes, as well as some useful functions.
14 :mod:`pickle` module, some lengthy comments about the implementation, and a
16 are useful for Python core developers who are working on the :mod:`pickle`;
17 ordinary users of the :mod:`pickle` module probably won't find the
26 disassemble the contents of one or more pickle files. Note that if
27 you want to see the Python object stored in the pickle rather than the
28 details of pickle format, you may want to use ``-m pickle`` instead.
29 However, when the pickle file that you want to examine comes from an
31 not execute pickle bytecode.
33 For example, with a tuple ``(1, 2)`` pickled in file ``x.pickle``:
37 $ python -m pickle x.pickle
40 $ python -m pickletools x.pickle
73 When more than one pickle file are specified, print given preamble
82 .. function:: dis(pickle, out=None, memo=None, indentlevel=4, annotate=0)
84 Outputs a symbolic disassembly of the pickle to the file-like
85 object *out*, defaulting to ``sys.stdout``. *pickle* can be a
87 that will be used as the pickle's memo; it can be used to perform
98 .. function:: genops(pickle)
100 Provides an :term:`iterator` over all of the opcodes in a pickle, returning a
104 *pickle* can be a string or a file-like object.
108 Returns a new equivalent pickle string after eliminating unused ``PUT``
109 opcodes. The optimized pickle is shorter, takes less transmission time,