[Python-checkins] r85637 - python/branches/release27-maint/Doc/library/pickle.rst
georg.brandl
python-checkins at python.org
Sun Oct 17 13:07:41 CEST 2010
Author: georg.brandl
Date: Sun Oct 17 13:07:40 2010
New Revision: 85637
Log:
__setstate__ gets an argument.
Modified:
python/branches/release27-maint/Doc/library/pickle.rst
Modified: python/branches/release27-maint/Doc/library/pickle.rst
==============================================================================
--- python/branches/release27-maint/Doc/library/pickle.rst (original)
+++ python/branches/release27-maint/Doc/library/pickle.rst Sun Oct 17 13:07:40 2010
@@ -444,7 +444,7 @@
instance's dictionary. If there is no :meth:`__getstate__` method, the
instance's :attr:`__dict__` is pickled.
-.. method:: object.__setstate__()
+.. method:: object.__setstate__(state)
Upon unpickling, if the class also defines the method :meth:`__setstate__`,
it is called with the unpickled state. [#]_ If there is no
More information about the Python-checkins
mailing list