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

Batuhan Taskaya report at bugs.python.org
Sat May 8 19:38:15 EDT 2021


New submission from Batuhan Taskaya <isidentical at gmail.com>:

Previously:

>>> import ast
>>> ast.unparse(ast.parse("lambda: 'hey!'"))
"lambda : 'hey!'"

Expected:

>>> import ast
>>> ast.unparse(ast.parse("lambda: 'hey!'"))
"lambda: 'hey!'"

----------
assignee: BTaskaya
components: Library (Lib)
messages: 393288
nosy: BTaskaya
priority: normal
severity: normal
status: open
title: ast.unparse: dont use redundant space separator for lambdas with no parameters
versions: Python 3.11

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


More information about the Python-bugs-list mailing list