input record seperator (equivalent of "$|" of perl)

Gábor Farkas gabor at z10n.net
Mon Dec 20 06:13:23 EST 2004


Scott David Daniels wrote:
> 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



More information about the Python-list mailing list