[Python-checkins] CVS: python/dist/src/Misc NEWS,1.146,1.147

Tim Peters tim_one@users.sourceforge.net
Tue, 01 May 2001 13:45:33 -0700


Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv9210/python/dist/src/Misc

Modified Files:
	NEWS 
Log Message:
Generalize list(seq) to work with iterators.  This also generalizes list()
to no longer insist that len(seq) be defined.
NEEDS DOC CHANGES.
This is meant to be a model for how other functions of this ilk (max,
filter, etc) can be generalized similarly.  Feel encouraged to grab your
favorite and convert it!
Note some cute consequences:
    list(file) == file.readlines() == list(file.xreadlines())
    list(dict) == dict.keys()
    list(dict.iteritems()) = dict.items()
    list(xrange(i, j, k)) == range(i, j, k)


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.146
retrieving revision 1.147
diff -C2 -r1.146 -r1.147
*** NEWS	2001/04/16 18:46:45	1.146
--- NEWS	2001/05/01 20:45:30	1.147
***************
*** 1,2 ****
--- 1,12 ----
+ What's New in Python 2.2a0?
+ ===========================
+ 
+ Core
+ 
+ - The following functions were generalized to work nicely with iterator
+   arguments:
+   list()
+ 
+ 
  What's New in Python 2.1 (final)?
  =================================