-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
gh-115480: Type propagate _BINARY_OP_ADD_UNICODE #115710
gh-115480: Type propagate _BINARY_OP_ADD_UNICODE #115710
Conversation
Needs #115686 to be merged first. |
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.
Let's go ahead and merge this.
a + a | ||
a + a | ||
a + a | ||
a + a |
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.
Sooner or later we'll have a peephole pass that will delete the generated code for this completely. Is there a reason you're not doing something like a = a + a
?
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.
That transforms it to BINARY_OP_INPLACE_ADD_UNICODE
sadly. Which is an unsupported opcode, so the trace ends there.
BINARY_OP
#115480