-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-44283: Add jump table for match-cases of None, int, and str constants, as well as or-patterns of these. #26697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This reverts commit 3cb2dcc.
This PR is stale because it has been open for 30 days with no activity. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good on my machine, unfortunately cant check on windoz.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a cool experiment, but I think it's too big of a change right now (especially considering PEP 669 was just implemented, which doesn't support multi-way branches). Plus, most of the bytecode compiler and interpreter have been refactored since this change was implemented.
I suggest we close this. Thoughts, @sweeneyde? We could always refer to it if we decide this is worth doing in the future.
Sounds good to me. It is a little fishy to only work on literals anyway. |
https://bugs.python.org/issue44283