Brett Cannon added the comment:

Two things. One, this won't change in Python 2.7 due to compatibility, so this 
only applies to Python 3.6. Two, the AST has not been designed to support 
round-trip syntax transpiling, e.g. there is no way to get back comments in the 
source code.

Because the AST is not meant to round-trip on source code I'm going to close 
this as "not a bug" since I don't see any benefit in supporting this even if we 
gain comment nodes in the AST.

----------
resolution:  -> not a bug
status: open -> closed
versions: +Python 3.6 -Python 2.7

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

Reply via email to