[Tutor] Diamond Equivalent

Kent Johnson kent37 at tds.net
Fri Sep 23 11:53:11 CEST 2005


kim.d at tesco.net wrote:
>>>I am coming to Python from Perl. Does Python have 
>>>anything like the diamond operator found in Perl?
> 
> 
> 
>>Python includes a module called 'fileinput' that does sorta this:
>>   http://www.python.org/doc/lib/module-fileinput.html
>>If you have more questions, please feel free to ask.  
>>Good luck to you!
> 
> 
> Thanks, Danny. Is this module included with Python or will I have to download 
> it? 

It is included as part of the standard library (as are all the modules in the doc Danny referenced).

Kent



More information about the Tutor mailing list