bpo-32550. Remove the STORE_ANNOTATION bytecode.#5181
bpo-32550. Remove the STORE_ANNOTATION bytecode.#5181rhettinger merged 2 commits intopython:masterfrom
Conversation
ac59ba2 to
662cc07
Compare
ilevkivskyi
left a comment
There was a problem hiding this comment.
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.
|
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 |
Guido has opined that these little difference don't matter: https://bugs.python.org/issue32550#msg310354
7d5e204 to
5cd13af
Compare
The
STORE_ANNOTATIONbytecode can be implemented usingSTORE_SUBSCR.This PR does just that.
Removes over 50 lines from the interpreter, adds 4 lines to the compiler.
https://bugs.python.org/issue32550