Author serhiy.storchaka
Recipients Mark.Shannon, pablogsal, rhettinger, serhiy.storchaka
Date 2019-12-29.21:54:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1577656488.76.0.0641898178332.issue39156@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-12-29 21:54:48serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, Mark.Shannon, pablogsal
2019-12-29 21:54:48serhiy.storchakasetmessageid: <1577656488.76.0.0641898178332.issue39156@roundup.psfhosted.org>
2019-12-29 21:54:48serhiy.storchakalinkissue39156 messages
2019-12-29 21:54:48serhiy.storchakacreate