Lines Matching refs:pickled
105 programs may not be able to reconstruct pickled Python objects.
111 possible for a human to read the pickled file with a standard text editor.
169 Write a pickled representation of *obj* to the open file object *file*. This is
202 Return the pickled representation of the object as a string, instead of writing
215 Read a pickled object hierarchy from a string. Characters in the string past
216 the pickled object's representation are ignored.
264 Write a pickled representation of *obj* to the open file object given in the
273 pickled by reference and not by value. This method is useful when re-using
291 instance. If the same object is pickled by multiple :meth:`dump` calls, the
315 Read a pickled object representation from the open file object given in
336 What can be pickled and unpickled?
339 The following types can be pickled:
366 Note that functions (built-in and user-defined) are pickled by "fully qualified"
368 pickled, along with the name of the module the function is defined in. Neither
369 the function's code, nor any of its function attributes are pickled. Thus the
373 Similarly, classes are pickled by named reference, so the same restrictions in
375 pickled, so in the following example the class attribute ``attr`` is not
386 Similarly, when class instances are pickled, their class's code and data are not
387 pickled along with them. Only the instance data are pickled. This is done on
418 When a pickled class instance is unpickled, its :meth:`__init__` method is
443 Classes can further influence how their instances are pickled; if the class
445 pickled as the contents for the instance, instead of the contents of the
447 instance's :attr:`~object.__dict__` is pickled.
453 :meth:`__setstate__` method, the pickled state must be a dictionary and its
486 pickled as normal. The string returned by :meth:`__reduce__` should be the
492 value. The contents of this tuple are pickled as normal and used to
499 subsequently be used to fully reconstruct the pickled data.
505 that as usual, the callable itself is pickled by name.
519 items. These list items will be pickled, and appended to the object using
529 will be pickled and stored to the object using ``obj[key] = value``. This
549 pickled, is to register the callable with the :mod:`copy_reg` module. This
553 that they are called with a single argument, the object to be pickled.
567 notion of a reference to an object outside the pickled data stream. Such
700 that a self-referencing list is pickled and restored correctly. ::
721 The following example reads the resulting pickled data. When reading a
740 :class:`TextReader` instance is pickled, all attributes *except* the file object
860 pickled again --- a reference to it is pickled and the :class:`Unpickler` will