mirror of
https://github.com/python/cpython.git
synced 2025-10-07 15:42:02 +00:00
#18705: merge with 3.3.
This commit is contained in:
commit
9a3777e525
26 changed files with 49 additions and 49 deletions
|
@ -887,7 +887,7 @@ stackslice = StackObject(
|
|||
obtype=StackObject,
|
||||
doc="""An object representing a contiguous slice of the stack.
|
||||
|
||||
This is used in conjuction with markobject, to represent all
|
||||
This is used in conjunction with markobject, to represent all
|
||||
of the stack following the topmost markobject. For example,
|
||||
the POP_MARK opcode changes the stack from
|
||||
|
||||
|
@ -2037,12 +2037,12 @@ def dis(pickle, out=None, memo=None, indentlevel=4, annotate=0):
|
|||
|
||||
stack = [] # crude emulation of unpickler stack
|
||||
if memo is None:
|
||||
memo = {} # crude emulation of unpicker memo
|
||||
memo = {} # crude emulation of unpickler memo
|
||||
maxproto = -1 # max protocol number seen
|
||||
markstack = [] # bytecode positions of MARK opcodes
|
||||
indentchunk = ' ' * indentlevel
|
||||
errormsg = None
|
||||
annocol = annotate # columnt hint for annotations
|
||||
annocol = annotate # column hint for annotations
|
||||
for opcode, arg, pos in genops(pickle):
|
||||
if pos is not None:
|
||||
print("%5d:" % pos, end=' ', file=out)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue