[New-bugs-announce] [issue2427] 2to3 should translate itertools.imap into generator expression, not list comprehension

Bruce Frederiksen report at bugs.python.org
Wed Mar 19 20:34:54 CET 2008


New submission from Bruce Frederiksen <dangyogi at gmail.com>:

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.

----------
assignee: collinwinter
components: 2to3 (2.x to 3.0 conversion tool)
messages: 64092
nosy: collinwinter, dangyogi
severity: normal
status: open
title: 2to3 should translate itertools.imap into generator expression, not list comprehension
type: behavior
versions: Python 2.6

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2427>
__________________________________


More information about the New-bugs-announce mailing list