mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Updated the INST/OBJ docs, to say they really are (almost) identical
in 2.3.
This commit is contained in:
parent
d01c1e91c4
commit
2b93c4c708
1 changed files with 6 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue