[issue41967] Handle annotations in the parser to avoid the need for roundtrip

Pablo Galindo Salgado report at bugs.python.org
Wed Oct 7 17:16:10 EDT 2020


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

>  I just wonder why bother
changing this unless we reproduce the spaces in the string exactly.

Maintenance reasons: it removes over 1000 lines of hand written code. Additionally, makes the compiler a bit faster because it does not need to transform the AST into a string.

----------

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


More information about the Python-bugs-list mailing list