Package Bio :: Package Medline :: Class Iterator
[show private | hide private]
[frames | no frames]

Class Iterator


Returns one record at a time from a file of Medline records.

Methods: next Return the next record from the stream, or None.
Method Summary
  __init__(self, handle, parser)
__init__(self, handle, parser=None)
  __iter__(self)
  next(self)
next(self) -> object

Method Details

__init__(self, handle, parser=None)
(Constructor)

__init__(self, handle, parser=None)

Create a new iterator. handle is a file-like object. parser is an optional Parser object to change the results into another form. If set to None, then the raw contents of the file will be returned.

next(self)

next(self) -> object

Return the next medline record from the file. If no more records, return None.

Generated by Epydoc 2.1 on Wed Jan 31 09:59:42 2007 http://epydoc.sf.net