[issue24119] Carry comments with the AST

Louie Lu report at bugs.python.org
Mon May 1 04:51:37 EDT 2017


Louie Lu added the comment:

Brett, which implement method will you prefer?

If we want to carry comment at builtin_compile_impl, it will need to change the grammar since tokenize just drop the comment when dealing with source code.

But if just using regex, will it be more easy with just combine the exists tokenize and ast module?

----------
nosy: +louielu

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24119>
_______________________________________


More information about the Python-bugs-list mailing list