Package Bio :: Package Prosite :: Module Prodoc :: Class Iterator
[show private | hide private]
[frames | no frames]

Class Iterator


Returns one record at a time from a Prodoc file.

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 Prodoc record from the file. If no more records, return None.

Generated by Epydoc 2.1 on Mon Aug 27 16:13:09 2007 http://epydoc.sf.net