New submission from Bruce Frederiksen [EMAIL PROTECTED]:
2to3, svn rev 61623 translates itertools.imap(lambda x: ..., ...) into a
list comprehension. This should be translated instead into a generator
expression so that doing itertools.imap on infinite iterators still works.
--
Raymond Hettinger [EMAIL PROTECTED] added the comment:
Why isn't itertools.imap() being translated directly to builtins.map()?
--
nosy: +rhettinger
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2427
__
David Wolever [EMAIL PROTECTED] added the comment:
itertools.imap is being translated directly to map... But I bet this is
another one of those ordering problems -- itertools.imap is converted to
the map, then the map is converted to list(map(...)) because fix_map
doesn't know that map was
David Wolever [EMAIL PROTECTED] added the comment:
Ok, I've added explicit ordering to fixers in r61654, fixing this issue.
--
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2427
__