Message161940
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. |
|
Date |
User |
Action |
Args |
2012-05-30 09:11:01 | lehmannro | set | recipients:
+ lehmannro, Ramchandra Apte, dair-targ |
2012-05-30 09:11:01 | lehmannro | set | messageid: <1338369061.52.0.842779538963.issue14961@psf.upfronthosting.co.za> |
2012-05-30 09:11:00 | lehmannro | link | issue14961 messages |
2012-05-30 09:11:00 | lehmannro | create | |
|