Message140897
| Author |
VPeric |
| Recipients |
VPeric |
| Date |
2011年07月22日.16:49:31 |
| SpamBayes Score |
0.002163695 |
| Marked as misclassified |
No |
| Message-id |
<1311353372.31.0.101702308601.issue12613@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The itertools fixer (izip -> zip, among others), fails for the following code:
from itertools import izip
print msg % str(bool(symbol_swapped) and list(izip(*swap_dict).next()) or symbols)
It gets converted to:
print(msg % str(bool(symbol_swapped) and list(next(izip(*swap_dict))) or symbols))
(note how izip is still there)
I've worked aroudn this by introducing tmp = izip(...) and using that, but it'd be nice if 2to3 caught it by default. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年07月22日 16:49:32 | VPeric | set | recipients:
+ VPeric |
| 2011年07月22日 16:49:32 | VPeric | set | messageid: <1311353372.31.0.101702308601.issue12613@psf.upfronthosting.co.za> |
| 2011年07月22日 16:49:31 | VPeric | link | issue12613 messages |
| 2011年07月22日 16:49:31 | VPeric | create |
|