Message176590
| 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:00 | jpkotta | set | recipients:
+ jpkotta |
| 2012年11月28日 23:58:00 | jpkotta | set | messageid: <1354147080.22.0.730661642804.issue16573@psf.upfronthosting.co.za> |
| 2012年11月28日 23:58:00 | jpkotta | link | issue16573 messages |
| 2012年11月28日 23:57:59 | jpkotta | create |
|