This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients Ramchandra Apte, dair-targ, lehmannro, ncoghlan
Date 2012-05-30.11:01:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
As Robert noted, the map() and filter() builtins in Python 3 are already lazy and there's no reason to expand the iterator protocol for this functionality.

Map and filter also have dedicated syntax in the form of comprehensions and generator expressions:

    itr = (x for x in map(abs, range(10)) if x % 5 == 0)

Furthermore, the standard library already provides an entire module of tools for creating and working with lazy iterators in both Python 2 and Python 3:
Date User Action Args
2012-05-30 11:01:16ncoghlansetrecipients: + ncoghlan, lehmannro, Ramchandra Apte, dair-targ
2012-05-30 11:01:16ncoghlansetmessageid: <>
2012-05-30 11:01:16ncoghlanlinkissue14961 messages
2012-05-30 11:01:15ncoghlancreate