Message359009
Few years ago I experimented with a special opcode for exception matching. It could make the bytecode a tiny bit smaller and faster, but since catching an exception in Python is relatively expensive, it would not have significant performance benefit.
As for splitting COMPARE_OP for comparison, identity and containment tests, all these operations look the same from the compiler side, they correspond the same AST node. Introducing new opcodes will complicate the compiler. |
|
Date |
User |
Action |
Args |
2019-12-29 21:54:48 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, Mark.Shannon, pablogsal |
2019-12-29 21:54:48 | serhiy.storchaka | set | messageid: <1577656488.76.0.0641898178332.issue39156@roundup.psfhosted.org> |
2019-12-29 21:54:48 | serhiy.storchaka | link | issue39156 messages |
2019-12-29 21:54:48 | serhiy.storchaka | create | |
|