This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jpkotta
Recipients jpkotta
Date 2012-11-28.23:57:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1354147080.22.0.730661642804.issue16573@psf.upfronthosting.co.za>
In-reply-to
Content
enumerate() is a "consuming_call", as defined in fixer_util.py, because it takes an iterable (not necessarily a collection).  Therefore whenever we have something like enumerate(zip(...)), we don't need to replace it with enumerate(list(zip(...))) in 2to3, because enumerate doesn't care that zip no longer returns a list.

Patch attached.
History
Date User Action Args
2012-11-28 23:58:00jpkottasetrecipients: + jpkotta
2012-11-28 23:58:00jpkottasetmessageid: <1354147080.22.0.730661642804.issue16573@psf.upfronthosting.co.za>
2012-11-28 23:58:00jpkottalinkissue16573 messages
2012-11-28 23:57:59jpkottacreate