Table of Contents

Class: CountLines Martel/RecordReader.py

Read a specified (fixed) number of lines

Base Classes   
RecordReader
Methods   
__init__
next
remainder
  __init__ 
__init__ (
        self,
        infile,
        count,
        sizehint=SIZEHINT,
        lookahead="",
        )

  next 
next ( self )

Exceptions   
ReaderError, "Only found %d lines, expecting %d (starting with %s ...)" %(len( positions ), self.count, repr(lookahead [ : 20 ] ) )
  remainder 
remainder ( self )


Table of Contents

This document was automatically generated on Mon Jul 1 12:03:20 2002 by HappyDoc version 2.0.1