Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Lib/test/test_dis.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -830,7 +830,7 @@ def foo(x):
%4d LOAD_GLOBAL 1 (list + NULL)
LOAD_FAST_BORROW 0 (x)
BUILD_TUPLE 1
LOAD_CONST 1 (<code object <genexpr> at 0x..., file "%s", line %d>)
LOAD_CONST %d (<code object <genexpr> at 0x..., file "%s", line %d>)
MAKE_FUNCTION
SET_FUNCTION_ATTRIBUTE 8 (closure)
LOAD_DEREF 1 (y)
Expand All@@ -842,6 +842,7 @@ def foo(x):
_h.__code__.co_firstlineno + 1,
_h.__code__.co_firstlineno + 1,
_h.__code__.co_firstlineno + 3,
1 if __debug__ else 0,
__file__,
_h.__code__.co_firstlineno + 3,
)
Expand DownExpand Up@@ -1468,7 +1469,7 @@ def get_disassembly(self, func, lasti=-1, wrapper=True, **kwargs):
Kw-only arguments: 0
Number of locals: 1
Stack size: \\d+
Flags: OPTIMIZED, NEWLOCALS, HAS_DOCSTRING
Flags: OPTIMIZED, NEWLOCALS(, HAS_DOCSTRING)?
Constants:
{code_info_consts}
Names:
Expand Down
Loading