New submission from Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue39889> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com