summaryrefslogtreecommitdiffstats
path: root/Doc/library/pickle.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-04-07 19:17:06 (GMT)
committerGeorg Brandl <georg@python.org>2008-04-07 19:17:06 (GMT)
commit23e8db57e7213f88d68b3f7ccb8db5e3b6d9a693 (patch)
treeebb33093929aee3872ca06ee93b9db57338d331f /Doc/library/pickle.rst
parentdc21db36cb481a192cc259b21e80e8d84f45f5d3 (diff)
downloadcpython-23e8db57e7213f88d68b3f7ccb8db5e3b6d9a693.zip
cpython-23e8db57e7213f88d68b3f7ccb8db5e3b6d9a693.tar.gz
cpython-23e8db57e7213f88d68b3f7ccb8db5e3b6d9a693.tar.bz2
#2567: remove new-style/old-style class docs.
Diffstat (limited to 'Doc/library/pickle.rst')
-rw-r--r--Doc/library/pickle.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/pickle.rst b/Doc/library/pickle.rst
index a9877ff..6c7c1d0 100644
--- a/Doc/library/pickle.rst
+++ b/Doc/library/pickle.rst
@@ -403,6 +403,7 @@ Pickling and unpickling normal class instances
single: __init__() (instance constructor)
.. XXX is __getinitargs__ only used with old-style classes?
+.. XXX update w.r.t Py3k's classes
When a pickled class instance is unpickled, its :meth:`__init__` method is
normally *not* invoked. If it is desirable that the :meth:`__init__` method be
@@ -447,8 +448,8 @@ can do what they want. [#]_
.. warning::
- For :term:`new-style class`\es, if :meth:`__getstate__` returns a false
- value, the :meth:`__setstate__` method will not be called.
+ If :meth:`__getstate__` returns a false value, the :meth:`__setstate__`
+ method will not be called.
Pickling and unpickling extension types