[issue42737] PEP 563: drop annotations for complex assign targets

Batuhan Taskaya report at bugs.python.org
Wed Apr 21 16:29:04 EDT 2021


Batuhan Taskaya <isidentical at gmail.com> added the comment:

> Batuhan, can you summarize the argument from the thread? What do you think yourself? Myself, I'm not sure either way, but it seems okay to remove the remnant bytecode.

I feel like we shouldn't generate code for these annotations at all, and only evaluate the targets. Since this is one of the things that blocks us right now regarding the bugfix of different issues (e.g annotations have side effects on symbol table).

Even though the PEP 563 being default change is reverted, I think we should move forward with this change but only do it under the future_annotations flag. @gvanrossum @pablogsal what do you think about this?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42737>
_______________________________________


More information about the Python-bugs-list mailing list