#NEWLINE# def fetchall( self ) : #NEWLINE# #INDENT# "\n        Fetch all (remaining) rows of a query result, returning them as a\n        sequence of sequences (e.g. a list of tuples). Note that the cursor's\n        arraysize attribute can affect the performance of this operation.\n        " #NEWLINE# result = [ ] #NEWLINE# iterate = True #NEWLINE# while iterate : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# result . append ( self . next ( ) ) #NEWLINE# #UNINDENT# except StopIteration : #NEWLINE# #INDENT# iterate = False #NEWLINE# #UNINDENT# #UNINDENT# return iterate