M.E.Farmer wrote:
I dont have itertools yet. That module looks like it rocks. thanks for the pointers, M.E.Farmer
If you have python 2.3 or 2.4, you have itertools.
for me it seems that 2.3 does not have itertools.groupby. it has itertools, but not itertools.groupby.
activepython-2.4:(win)
>>> import itertools
>>> dir(itertools)
['__doc__', '__name__', 'chain', 'count', 'cycle', 'dropwhile', 'groupby', 'ifilter', 'ifilterfalse', 'imap', 'islice', 'izip', 'repeat', 'starmap', 'takewhile', 'tee']
python-2.3:(linux)
>>> import itertools
>>> dir(itertools)
['__doc__', '__file__', '__name__', 'chain', 'count', 'cycle', 'dropwhile', 'ifilter', 'ifilterfalse', 'imap', 'islice', 'izip', 'repeat', 'starmap', 'takewhile']
gabor -- http://mail.python.org/mailman/listinfo/python-list