[Python-checkins] CVS: python/dist/src/Misc NEWS,1.150,1.151
Tim Peters
tim_one@users.sourceforge.net
Thu, 03 May 2001 16:54:51 -0700
Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv29503/python/dist/src/Misc
Modified Files:
NEWS
Log Message:
Generalize map() to work with iterators.
NEEDS DOC CHANGES.
Possibly contentious: The first time s.next() yields StopIteration (for
a given map argument s) is the last time map() *tries* s.next(). That
is, if other sequence args are longer, s will never again contribute
anything but None values to the result, even if trying s.next() again
could yield another result. This is the same behavior map() used to have
wrt IndexError, so it's the only way to be wholly backward-compatible.
I'm not a fan of letting StopIteration mean "try again later" anyway.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.150
retrieving revision 1.151
diff -C2 -r1.150 -r1.151
*** NEWS 2001/05/03 07:00:32 1.150
--- NEWS 2001/05/03 23:54:49 1.151
***************
*** 20,23 ****
--- 20,24 ----
filter()
list()
+ map()
max()
min()