]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39156: Break up COMPARE_OP into four logically distinct opcodes. (GH-17754)
authorMark Shannon <mark@hotpy.org>
Tue, 14 Jan 2020 10:12:45 +0000 (10:12 +0000)
committerGitHub <noreply@github.com>
Tue, 14 Jan 2020 10:12:45 +0000 (10:12 +0000)
commit9af0e47b1705457bb6b327c197f2ec5737a1d8f6
tree97378eee78d793d16bd19038d88371d776e720c3
parent62e3973395fb9fab2eb8f651bcd0fea4e695e1cf
bpo-39156: Break up COMPARE_OP into four logically distinct opcodes. (GH-17754)

Break up COMPARE_OP into four logically distinct opcodes:
* COMPARE_OP for rich comparisons
* IS_OP for 'is' and 'is not' tests
* CONTAINS_OP for 'in' and 'is not' tests
* JUMP_IF_NOT_EXC_MATCH for checking exceptions in 'try-except' statements.
17 files changed:
Doc/library/dis.rst
Include/opcode.h
Lib/importlib/_bootstrap_external.py
Lib/opcode.py
Lib/test/test_dis.py
Lib/test/test_peepholer.py
Lib/test/test_positional_only_arg.py
Misc/NEWS.d/next/Core and Builtins/2019-12-30-10-53-59.bpo-39156.veT-CB.rst [new file with mode: 0644]
PC/launcher.c
Python/ceval.c
Python/compile.c
Python/importlib.h
Python/importlib_external.h
Python/importlib_zipimport.h
Python/opcode_targets.h
Python/peephole.c
Tools/scripts/generate_opcode_h.py