def isfirstline():
 if (not _state):
  raise RuntimeError('no active input()')
 return _state.isfirstline()

def isfirstline ( ) : if ( not _state ) : raise RuntimeError ( 'no active input()' ) return _state . isfirstline ( )
returns true the line just read is the first line of its file .