[issue20742] 2to3 zip fixer doesn't fix for loops.

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker ___

[issue20742] 2to3 zip fixer doesn't fix for loops.

2014-09-28 Thread RobertG
RobertG added the comment: As far as a non contrived example, see http://bugs.python.org/issue21628, which was marked as a duplicate of this bug. This bug is the main thing preventing me from using 2to3, so I think it is a real issue. -- ___

[issue20742] 2to3 zip fixer doesn't fix for loops.

2014-06-02 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +RobertG, benjamin.peterson versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20742

[issue20742] 2to3 zip fixer doesn't fix for loops.

2014-02-23 Thread David Jones
New submission from David Jones: Consider the following code: for z in zip([1]):pass 2to3 does not convert the zip in this code to list(zip(...)); it does not change this code at all. That can be an (obscure) bug because the zip in Python 2 has different semantics from the zip in Python 3.

[issue20742] 2to3 zip fixer doesn't fix for loops.

2014-02-23 Thread Peter Otten
Peter Otten added the comment: Hm, I would expect that in 99 times out of 100 the extra list(...) would be removed in a manual step following the automated conversion. I'd really like to see the non-contrived example with a justified use of this evil side effect ;) -- nosy: