Read a specified (fixed) number of lines
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 )
|
|