[issue44081] ast.unparse: dont use redundant space separator for lambdas with no parameters

Terry J. Reedy report at bugs.python.org
Fri May 14 18:35:15 EDT 2021


Terry J. Reedy <tjreedy at udel.edu> added the comment:

Agreed. unparse is already correct if there is a parameter.
>>> ast.unparse(ast.parse("lambda x: 'hey!'"))
"lambda x: 'hey!'"

----------
nosy: +terry.reedy

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


More information about the Python-bugs-list mailing list