[Python-3000] map() Returns Iterator
Raymond Hettinger
python at rcn.com
Tue Aug 7 05:45:09 CEST 2007
From: "Kurt B. Kaiser" <kbk at shore.net>
> , IMHO eliminating the strict versions of map() and filter() in
> favor of the lazy versions from itertools kicks the degree of
> sophistication necessary to understand these functions up a notch (or
> three).
Not really. Once range() starts returning an iterator,
that will be the new, basic norm. With that as a foundation,
it would be suprising if map() and enumerate() and zip()
did not return iterators. Learn once, use everywhere.
Raymond
More information about the Python-3000
mailing list