This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka
Date 2020-03-07.14:41:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583592092.92.0.938156350005.issue39889@roundup.psfhosted.org>
In-reply-to
Content
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)]
History
Date User Action Args
2020-03-07 14:41:32serhiy.storchakasetrecipients: + serhiy.storchaka
2020-03-07 14:41:32serhiy.storchakasetmessageid: <1583592092.92.0.938156350005.issue39889@roundup.psfhosted.org>
2020-03-07 14:41:32serhiy.storchakalinkissue39889 messages
2020-03-07 14:41:32serhiy.storchakacreate