[Python-checkins] python/dist/src/Misc NEWS,1.909,1.910

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Sat Dec 6 11:23:08 EST 2003


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

Modified Files:
	NEWS 
Log Message:
Implement itertools.groupby()

Original idea by Guido van Rossum.
Idea for skipable inner iterators by Raymond Hettinger.
Idea for argument order and identity function default by Alex Martelli.
Implementation by Hye-Shik Chang (with tweaks by Raymond Hettinger).



Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.909
retrieving revision 1.910
diff -C2 -d -r1.909 -r1.910
*** NEWS	5 Dec 2003 20:28:07 -0000	1.909
--- NEWS	6 Dec 2003 16:23:06 -0000	1.910
***************
*** 165,168 ****
--- 165,173 ----
    issue a warning when randrange() is called with a range that large.
  
+ - itertools has a new function, groupby() for aggregating iterables
+   into groups sharing the same key (as determined by a key function).
+   It offers some of functionality of SQL's groupby keyword and of
+   the Unix uniq filter.
+                                                                   
  - itertools now has a new function, tee() which produces two independent
    iterators from a single iterable.





More information about the Python-checkins mailing list