◐ Shell
clean mode source ↗

bpo-39156: Break up COMPARE_OP into four logically distinct opcodes. by markshannon · Pull Request #17754 · python/cpython

ZackerySpytz

   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.

@markshannon

@markshannon

shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request

Jan 31, 2020
…ythonGH-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.