diff options
author | Georg Brandl <georg@python.org> | 2010-09-21 14:48:28 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-09-21 14:48:28 (GMT) |
commit | 6faee4e2ce8ee107bfe92bac74afa2c30ed4aebd (patch) | |
tree | 2493738443750be19a421393c8b20fde0f1a195e /Doc/library/pickle.rst | |
parent | af38dc5b0c6f4a0308555199a07fcaba8f27e94d (diff) | |
download | cpython-6faee4e2ce8ee107bfe92bac74afa2c30ed4aebd.zip cpython-6faee4e2ce8ee107bfe92bac74afa2c30ed4aebd.tar.gz cpython-6faee4e2ce8ee107bfe92bac74afa2c30ed4aebd.tar.bz2 |
#9911: doc copyedits.
Diffstat (limited to 'Doc/library/pickle.rst')
-rw-r--r-- | Doc/library/pickle.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/pickle.rst b/Doc/library/pickle.rst index 5e5d0a3..66d1472 100644 --- a/Doc/library/pickle.rst +++ b/Doc/library/pickle.rst @@ -197,7 +197,7 @@ process more convenient: that meets this interface. Optional keyword arguments are *fix_imports*, *encoding* and *errors*, - which are used to control compatiblity support for pickle stream generated + which are used to control compatibility support for pickle stream generated by Python 2.x. If *fix_imports* is True, pickle will try to map the old Python 2.x names to the new names used in Python 3.x. The *encoding* and *errors* tell pickle how to decode 8-bit string instances pickled by Python @@ -213,7 +213,7 @@ process more convenient: ignored. Optional keyword arguments are *fix_imports*, *encoding* and *errors*, - which are used to control compatiblity support for pickle stream generated + which are used to control compatibility support for pickle stream generated by Python 2.x. If *fix_imports* is True, pickle will try to map the old Python 2.x names to the new names used in Python 3.x. The *encoding* and *errors* tell pickle how to decode 8-bit string instances pickled by Python @@ -310,7 +310,7 @@ The :mod:`pickle` module exports two classes, :class:`Pickler` and that meets this interface. Optional keyword arguments are *fix_imports*, *encoding* and *errors*, - which are used to control compatiblity support for pickle stream generated + which are used to control compatibility support for pickle stream generated by Python 2.x. If *fix_imports* is True, pickle will try to map the old Python 2.x names to the new names used in Python 3.x. The *encoding* and *errors* tell pickle how to decode 8-bit string instances pickled by Python @@ -429,7 +429,7 @@ implementation of this behaviour:: .. index:: single: __getnewargs__() (copy protocol) -Classes can alter the default behaviour by providing one or severals special +Classes can alter the default behaviour by providing one or several special methods. In protocol 2 and newer, classes that implements the :meth:`__getnewargs__` method can dictate the values passed to the :meth:`__new__` method upon unpickling. This is often needed for classes |