mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
bpo-45168: change dis output to omit missing values rather than replacing them by their index (GH-28313)
This commit is contained in:
parent
c2f1e95337
commit
c99fc4e53a
4 changed files with 28 additions and 19 deletions
|
@ -48,12 +48,12 @@ dis_c_instance_method = """\
|
|||
""" % (_C.__init__.__code__.co_firstlineno + 1,)
|
||||
|
||||
dis_c_instance_method_bytes = """\
|
||||
0 LOAD_FAST 1 (1)
|
||||
2 LOAD_CONST 1 (1)
|
||||
0 LOAD_FAST 1
|
||||
2 LOAD_CONST 1
|
||||
4 COMPARE_OP 2 (==)
|
||||
6 LOAD_FAST 0 (0)
|
||||
8 STORE_ATTR 0 (0)
|
||||
10 LOAD_CONST 0 (0)
|
||||
6 LOAD_FAST 0
|
||||
8 STORE_ATTR 0
|
||||
10 LOAD_CONST 0
|
||||
12 RETURN_VALUE
|
||||
"""
|
||||
|
||||
|
@ -105,11 +105,11 @@ dis_f = """\
|
|||
|
||||
|
||||
dis_f_co_code = """\
|
||||
0 LOAD_GLOBAL 0 (0)
|
||||
2 LOAD_FAST 0 (0)
|
||||
0 LOAD_GLOBAL 0
|
||||
2 LOAD_FAST 0
|
||||
4 CALL_FUNCTION 1
|
||||
6 POP_TOP
|
||||
8 LOAD_CONST 1 (1)
|
||||
8 LOAD_CONST 1
|
||||
10 RETURN_VALUE
|
||||
"""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue