Logo Search packages:      
Sourcecode: python-biopython version File versions  Download package

def Bio::Saf::Iterator::next (   self  ) 

Return the next Saf record from the handle.

Will return None if we ran out of records.

Definition at line 52 of file __init__.py.

00052                   :
        """Return the next Saf record from the handle.

        Will return None if we ran out of records.
        """
        data = self._reader.next()

        if self._parser is not None:
            if data:
                dumpfile = open( 'dump', 'w' )
                dumpfile.write( data )
                dumpfile.close()
                return self._parser.parse(File.StringHandle(data))

        return data
    


Generated by  Doxygen 1.6.0   Back to index