[New-bugs-announce] [issue39313] lib2to3 RefactoringTool python_grammar_no_print_and_exec_statement
Batuhan
report at bugs.python.org
Sun Jan 12 10:15:27 EST 2020
New submission from Batuhan <batuhanosmantaskaya at gmail.com>:
issue 23896 introduced a grammar without print and exec statements (they both are functions now) but both the lib2to3 cli script and RefactoringTool lacks of that functionality (which is pretty useful for outside users of lib2to3 like formatters)
(RefactoringTool)
if self.options["print_function"]:
self.grammar = pygram.python_grammar_no_print_statement
else:
self.grammar = pygram.python_grammar
It should be supported here and on the command line script.
----------
components: 2to3 (2.x to 3.x conversion tool)
messages: 359853
nosy: BTaskaya, benjamin.peterson
priority: normal
severity: normal
status: open
title: lib2to3 RefactoringTool python_grammar_no_print_and_exec_statement
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39313>
_______________________________________
More information about the New-bugs-announce
mailing list