[New-bugs-announce] [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>

More information about the New-bugs-announce mailing list