]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Updated the INST/OBJ docs, to say they really are (almost) identical
authorTim Peters <tim.peters@gmail.com>
Thu, 30 Jan 2003 16:35:08 +0000 (16:35 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 30 Jan 2003 16:35:08 +0000 (16:35 +0000)
in 2.3.

Lib/pickletools.py

index 7eaa1a5d6dae3571eb5dc59481506d24a5edc0ee..74ba8d964f923b91c34687ff20576e489eb584dd 100644 (file)
@@ -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',