summaryrefslogtreecommitdiff
path: root/Lib/pickletools.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-01-30 16:35:08 +0000
committerTim Peters <tim.peters@gmail.com>2003-01-30 16:35:08 +0000
commit30c500b214e7151efeb419adf2510331140128d8 (patch)
treeac17130614b8b1eff2e49daba8a4afc6f6df3321 /Lib/pickletools.py
parentb2d3308d1d0213c8db2189b8adfce9ddcf7a5515 (diff)
downloadcpython-30c500b214e7151efeb419adf2510331140128d8.tar.gz
Updated the INST/OBJ docs, to say they really are (almost) identical
in 2.3.
Diffstat (limited to 'Lib/pickletools.py')
-rw-r--r--Lib/pickletools.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/pickletools.py b/Lib/pickletools.py
index 7eaa1a5d6d..74ba8d964f 100644
--- a/Lib/pickletools.py
+++ b/Lib/pickletools.py
@@ -1614,6 +1614,8 @@ opcodes = [
the class object obtained from INST's arguments is applied to the
argtuple obtained from the stack, and the resulting instance object
is pushed on the stack.
+
+ NOTE: checks for __safe_for_unpickling__ went away in Python 2.3.
"""),
I(name='OBJ',
@@ -1643,6 +1645,10 @@ opcodes = [
except that no __safe_for_unpickling__ check is done (XXX this is
a bug; cPickle does test __safe_for_unpickling__). See INST for
the gory details.
+
+ NOTE: In Python 2.3, INST and OBJ are identical except for how they
+ get the class object. That was always the intent; the implementations
+ had diverged for accidental reasons.
"""),
I(name='NEWOBJ',