[issue9245] "from itertools imoprt *" crashes 2to3
Ronald Oussoren
report at bugs.python.org
Tue Jul 13 14:27:40 CEST 2010
Ronald Oussoren <ronaldoussoren at mac.com> added the comment:
A related issue:
from itertools import chain, izip, imap
This results in an invalid transformation:
-from itertools import chain, izip, imap
+from itertools import chain,
The translated version is an invalid import statement with a ',' at the end of the line.
A workaround for the first issue: use explicit imports. A workaround for this one: use "from itertools import izip, imap, chain".
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9245>
_______________________________________
More information about the Python-bugs-list
mailing list