[issue12616] zip fixer fails on zip()[:-1]

Vlada Peric report at bugs.python.org
Sat Jul 23 00:11:40 CEST 2011


New submission from Vlada Peric <vlada.peric at gmail.com>:

The zip fixer fails on this code:

zip(B, D)[:-1]

I fixed this by wrapping explicitly with list(), but that creates a duplicate list on Python 2. 

(Like the other fixes I reported, I assume this also applies to 3.3, but I didn't test it so I don't know; adding Eric and Benjamin to nosy, though)

----------
components: 2to3 (2.x to 3.0 conversion tool)
messages: 140919
nosy: VPeric, benjamin.peterson, eric.araujo
priority: normal
severity: normal
status: open
title: zip fixer fails on zip()[:-1]
versions: Python 2.7, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12616>
_______________________________________


More information about the Python-bugs-list mailing list