[Python-3000] map() Returns Iterator

Guido van Rossum guido at python.org
Mon Aug 6 22:43:43 CEST 2007


On 8/6/07, Kevin Jacobs <jacobs at bioinformed.com> <bioinformed at gmail.com> wrote:
> I hate to be pedantic, but it is not possible for 2to3 to tell, in general,
> that it is safe to elide the list() because the result is used directly in a
> for loop (for the usual arguments that use the Halting Problem as a trump
> card).

Of course not. 2to3 is a pragmatic tool and doesn't really care.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list