#NEWLINE# def lookahead( self , n ) : #NEWLINE# #INDENT# fetch = ( n - len ( self . stash ) ) #NEWLINE# while True : #NEWLINE# #INDENT# fetch -= 1 #NEWLINE# if ( not ( fetch >= 0 ) ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# self . stash . append ( self . next ( ) ) #NEWLINE# #UNINDENT# return self . stash [ ( n - 1 ) ]