Robert Lehmann <lehman...@gmail.com> added the comment: Your proposal seems two-fold: (a) make map/filter lazy and (b) have them as methods instead of functions.
It seems Tim borrowed Guido's time machine and already implemented (a) in Python 3.x, see http://docs.python.org/py3k/library/functions.html#map and http://docs.python.org/py3k/library/functions.html#filter. Your second proposal-- which is better suited for python-ideas, really --is obstructed by iterators being merely a protocol (the next/__next__ method) which makes it hard to add those methods to one particular type. (This very discussion pops up every so often for str.join too.) I'd recommend closing this issue. ---------- nosy: +lehmannro _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14961> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com