[issue28837] 2to3 does not wrap zip correctly

2017-06-15 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Backported to 3.6. -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed versions: -Python 2.7 ___ Python tracker

[issue28837] 2to3 does not wrap zip correctly

2017-06-15 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 292b421d48ab91b0c68ea4040fc7371e7d6d610e by Mariatta in branch '3.6': bpo-28837: Fix lib2to3 handling of map/zip/filter calls when followed with a 'trailer', e.g. zip()[x] (GH-24) (GH-2235)

[issue28837] 2to3 does not wrap zip correctly

2017-06-15 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2280 ___ Python tracker ___ ___

[issue28837] 2to3 does not wrap zip correctly

2017-04-18 Thread Berker Peksag
Berker Peksag added the comment: I think this at least needs to be backported to 3.6 (or can we close the issue now?) -- nosy: +berker.peksag stage: -> backport needed ___ Python tracker

[issue28837] 2to3 does not wrap zip correctly

2017-04-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 93b4b47e3a720171d67f3b608de406aef462835c by Benjamin Peterson (Stuart Berg) in branch 'master': bpo-28837: Fix lib2to3 handling of map/zip/filter calls when followed with a 'trailer', e.g. zip()[x] (#24)

[issue28837] 2to3 does not wrap zip correctly

2017-02-15 Thread Stuart Berg
Changes by Stuart Berg : -- pull_requests: +85 ___ Python tracker ___ ___

[issue28837] 2to3 does not wrap zip correctly

2017-02-11 Thread Stuart Berg
Stuart Berg added the comment: Patch submitted as github PR #24: https://github.com/python/cpython/pull/24 -- ___ Python tracker ___

[issue28837] 2to3 does not wrap zip correctly

2017-01-19 Thread Stuart Berg
Changes by Stuart Berg : Added file: http://bugs.python.org/file46343/fix-28837.patch ___ Python tracker ___

[issue28837] 2to3 does not wrap zip correctly

2017-01-19 Thread Stuart Berg
Changes by Stuart Berg : Removed file: http://bugs.python.org/file46342/fix-28837.patch ___ Python tracker ___

[issue28837] 2to3 does not wrap zip correctly

2017-01-19 Thread Stuart Berg
Changes by Stuart Berg : Removed file: http://bugs.python.org/file46341/fix-28837.patch ___ Python tracker ___

[issue28837] 2to3 does not wrap zip correctly

2017-01-19 Thread Stuart Berg
Stuart Berg added the comment: Sorry for re-uploading the patch; I made some pep8 fixes. -- Added file: http://bugs.python.org/file46342/fix-28837.patch ___ Python tracker

[issue28837] 2to3 does not wrap zip correctly

2017-01-19 Thread Stuart Berg
Changes by Stuart Berg : Added file: http://bugs.python.org/file46341/fix-28837.patch ___ Python tracker ___

[issue28837] 2to3 does not wrap zip correctly

2017-01-19 Thread Stuart Berg
Changes by Stuart Berg : Removed file: http://bugs.python.org/file46339/fix-28837.patch ___ Python tracker ___

[issue28837] 2to3 does not wrap zip correctly

2017-01-19 Thread Stuart Berg
Stuart Berg added the comment: In addition to zip(), this problem also affects map() and filter(). The problem is that the match patterns in FixZip, FixMap, and FixFilter do not allow for more than one "trailer" node. (And even if they did, their transform() methods aren't expecting it.)

[issue28837] 2to3 does not wrap zip correctly

2016-11-30 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +benjamin.peterson versions: +Python 3.6, Python 3.7 -Python 3.4 ___ Python tracker ___

[issue28837] 2to3 does not wrap zip correctly

2016-11-30 Thread Carsten
New submission from Carsten: The following Python 2.7 code is not converted correctly to Python 3 by 2to3: c = [(1, 10), (2, 20)] # get a tuple with the first entries of every tuple in c, # i.e. (1, 2) x = zip(*c)[0] print x The result is c = [(1, 10), (2, 20)] # get a tuple with the