diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2011-12-12 17:54:29 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2011-12-12 17:54:29 (GMT) |
commit | aa6c1d240fc4dd883b4c5a1564182e8fa90de496 (patch) | |
tree | 417976ca1ed9205f4dd9fc19768dfd93afff632a /Lib | |
parent | 9d57481f043cb9b94bfc45c1ee041415d915cf8a (diff) | |
download | cpython-aa6c1d240fc4dd883b4c5a1564182e8fa90de496.zip cpython-aa6c1d240fc4dd883b4c5a1564182e8fa90de496.tar.gz cpython-aa6c1d240fc4dd883b4c5a1564182e8fa90de496.tar.bz2 |
Issue #13575: there is only one class type.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/pickle.py | 2 | ||||
-rw-r--r-- | Lib/pickletools.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py index a911ca0..ca36274 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -375,7 +375,7 @@ class _Pickler: # allowing protocol 0 and 1 to work normally. For this to # work, the function returned by __reduce__ should be # called __newobj__, and its first argument should be a - # new-style class. The implementation for __newobj__ + # class. The implementation for __newobj__ # should be as follows, although pickle has no way to # verify this: # diff --git a/Lib/pickletools.py b/Lib/pickletools.py index 515d375..9086416 100644 --- a/Lib/pickletools.py +++ b/Lib/pickletools.py @@ -1639,6 +1639,8 @@ opcodes = [ is pushed on the stack. NOTE: checks for __safe_for_unpickling__ went away in Python 2.3. + NOTE: the distinction between old-style and new-style classes does + not make sense in Python 3. """), I(name='OBJ', |