Pablo Galindo Salgado <pablog...@gmail.com> added the comment:

>> I don't have a particularly deep opinion on what should be done, just a bit 
>> of weirdness I hit upon while implementing the PEP in PyPy. fwiw, we 
>> implement it as an AST transformer that the compiler runs before running the 
>> optimizer to make sure that the AST optimizations don't get applied to 
>> annotions. The transformer replaces all annotations with a Constant ast 
>> node, containing the unparsed string.


I have given it a try in PR 17866 and it was not as invasive as I imagine, so 
if Ɓukasz agrees, we can go ahead :)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39220>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to