min max of a list

Steven Bethard steven.bethard at gmail.com
Thu May 5 14:07:40 EDT 2005


querypk at gmail.com wrote:
> Thanks for that. My version of python does'nt find "groupby". I am
> using python 2.3.2. Is there a way I could do it with out using groupby

itertools.groupby is in Python 2.4. The docs[1] give a Python 
equivalent, so if for some reason you can't upgrade to the current 
version of Python, you can just copy the groupby code from there.

STeVe

[1]http://docs.python.org/lib/itertools-functions.html#l2h-1379



More information about the Python-list mailing list