[BioPython] RecordFile
Jeffrey Chang
jchang@SMI.Stanford.EDU
Wed, 27 Jun 2001 21:29:11 -0700
At 2:36 AM -0600 6/27/01, Andrew Dalke wrote:
>Cayte:
>>> The implementation is based on a state machine. and assumes sequential
>>> access
>
>Ramu:
>>subsequent call should return the next record and empty string should be
>>used to mark for end of file. Something like
>>
>> while 1:
>> e = db.nextrecord()
>> if not e:
> > break
Andrew:
>You all might want to look at two new features for Python 2.2,
>"Iterators" http://python.sourceforge.net/peps/pep-0234.html and
>"Simple Generators" http://python.sourceforge.net/peps/pep-0255.html
I'm probably stating the obvious, but people, please remember that these are still draft standards slated for inclusion in Python 2.2. The biopython core should run on 2.0 for a while...
Jeff