]> granicus.if.org Git - python/commitdiff
Fix method name in documentation (__setstate__ --> __getstate__)
authorEli Bendersky <eliben@gmail.com>
Wed, 2 Jan 2013 13:53:59 +0000 (05:53 -0800)
committerEli Bendersky <eliben@gmail.com>
Wed, 2 Jan 2013 13:53:59 +0000 (05:53 -0800)
Doc/library/pickle.rst

index a1f9af23be131b0510a5752dc40e5b3b2507a7a8..e250dcfe3ae0c7b052472ee09efc8ff88fd4a180 100644 (file)
@@ -367,8 +367,9 @@ The following types can be pickled:
 
 * classes that are defined at the top level of a module
 
-* instances of such classes whose :attr:`__dict__` or :meth:`__setstate__` is
-  picklable  (see section :ref:`pickle-inst` for details)
+* instances of such classes whose :attr:`__dict__` or the result of calling
+  :meth:`__getstate__` is picklable  (see section :ref:`pickle-inst` for
+  details).
 
 Attempts to pickle unpicklable objects will raise the :exc:`PicklingError`
 exception; when this happens, an unspecified number of bytes may have already
@@ -379,8 +380,8 @@ raised in this case.  You can carefully raise this limit with
 
 Note that functions (built-in and user-defined) are pickled by "fully qualified"
 name reference, not by value.  This means that only the function name is
-pickled, along with the name of the module the function is defined in.  Neither the
-function's code, nor any of its function attributes are pickled.  Thus the
+pickled, along with the name of the module the function is defined in.  Neither
+the function's code, nor any of its function attributes are pickled.  Thus the
 defining module must be importable in the unpickling environment, and the module
 must contain the named object, otherwise an exception will be raised. [#]_