The `Compare` enum is broken starting from Python 3.9
Closed this issue · 0 comments
P403n1x87 commented
Python 3.9.7 (default, Sep 3 2021, 12:37:55)
[Clang 12.0.5 (clang-1205.0.22.9)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from dis import cmp_op
>>> len(cmp_op)
6
>>> cmp_op
('<', '<=', '==', '!=', '>', '>=')
The in
and is
operators have dedicated opcodes (with an argument for the inverse) and they should be removed from Compare
.