Skip to content
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

bpo-32550. Remove the STORE_ANNOTATION bytecode. #5181

Merged
merged 2 commits into from
Jan 30, 2018

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented Jan 14, 2018

The STORE_ANNOTATION bytecode can be implemented using STORE_SUBSCR.
This PR does just that.
Removes over 50 lines from the interpreter, adds 4 lines to the compiler.

https://bugs.python.org/issue32550

Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am -1 on this. As Serhiy mentioned on b.p.o. this will make annotations slower and doesn't cover corner cases.

I am however surprised that this is not caught by the tests.

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@rhettinger rhettinger dismissed ilevkivskyi’s stale review January 29, 2018 06:00

Guido has opined that these little difference don't matter: https://bugs.python.org/issue32550#msg310354

@rhettinger rhettinger self-assigned this Jan 29, 2018
@markshannon markshannon force-pushed the remove-add-annotation-bytecode branch from 7d5e204 to 5cd13af Compare January 29, 2018 23:37
@rhettinger rhettinger merged commit 332cd5e into python:master Jan 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants