[BioPython] python equiv of perl's null operator <>

Mike Cariaso MCariaso at Endogenybio.com
Tue Jul 15 10:14:17 EDT 2003



Michael Cariaso
Director Bioinformatics
Endogeny Bio Corp
9700 Great Seneca Highway
Rockville, MD 20850
Tel: 240-453-8461
Fax: 301-424-4828
mcariaso at endogenybio.com
This is nothing specific to BIOpython about this, but I imagine many
folks on this list may be able to help.

After moving from perl to python I find I miss the ability to do a

                 while (<>) { }

which reads from either stdin or from files listed on the command line.
Any other perl to python converts who've written a subroutine to emulate
this, or perhaps a more pythonic idiom?

Michael Cariaso
Endogeny Bio Corp




More information about the BioPython mailing list