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

2021-05-15 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

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

2021-05-14 Thread Terry J. Reedy
Terry J. Reedy 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

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

2021-05-08 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +24653 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26000 ___ Python tracker ___

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

2021-05-08 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : 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