[New-bugs-announce] [issue39889] Fix ast.unparse() for subscription by extended slices and tuples
Serhiy Storchaka
report at bugs.python.org
Sat Mar 7 09:41:32 EST 2020
New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:
ast.unparse() produces incorrect output for ExtSlice containing a single element:
>>> print(ast.unparse(ast.parse('a[i:j,]')))
a[i:j]
It also produces redundant parenthesis for Index containing Tuple:
>>> print(ast.unparse(ast.parse('a[i, j]')))
a[(i, j)]
----------
components: Demos and Tools, Library (Lib)
messages: 363596
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Fix ast.unparse() for subscription by extended slices and tuples
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39889>
_______________________________________
More information about the New-bugs-announce
mailing list