[issue39889] Fix ast.unparse() for subscription by extended slices and tuples

2020-03-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39889] Fix ast.unparse() for subscription by extended slices and tuples

2020-03-07 Thread miss-islington
miss-islington added the comment: New changeset 65b031090161331470827ec809732008b15030d5 by Miss Islington (bot) in branch '3.7': [3.8] bpo-39889: Fix unparse.py for subscript. (GH-18824). (GH-18826) https://github.com/python/cpython/commit/65b031090161331470827ec809732008b15030d5 -

[issue39889] Fix ast.unparse() for subscription by extended slices and tuples

2020-03-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +18185 pull_request: https://github.com/python/cpython/pull/18827 ___ Python tracker _

[issue39889] Fix ast.unparse() for subscription by extended slices and tuples

2020-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 92b72788ecf2ee5dfac780c7dfb5ee5350fc641d by Serhiy Storchaka in branch '3.8': [3.8] bpo-39889: Fix unparse.py for subscript. (GH-18824). (GH-18826) https://github.com/python/cpython/commit/92b72788ecf2ee5dfac780c7dfb5ee5350fc641d --

[issue39889] Fix ast.unparse() for subscription by extended slices and tuples

2020-03-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +18184 pull_request: https://github.com/python/cpython/pull/18826 ___ Python tracker ___

[issue39889] Fix ast.unparse() for subscription by extended slices and tuples

2020-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c4928fc1a853f3f84e2b4ec1253d0349137745e5 by Serhiy Storchaka in branch 'master': bpo-39889: Fix ast.unparse() for subscript. (GH-18824) https://github.com/python/cpython/commit/c4928fc1a853f3f84e2b4ec1253d0349137745e5 -- ___

[issue39889] Fix ast.unparse() for subscription by extended slices and tuples

2020-03-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +18183 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18824 ___ Python tracker ___

[issue39889] Fix ast.unparse() for subscription by extended slices and tuples

2020-03-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : 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,