parameters: (self)
docstring: Closing a cursor just exhausts all remaining data.
docstring_summary: Closing a cursor just exhausts all remaining data.
docstring_tokens: Closing a cursor just exhausts all remaining data .
function: def close(self):
          """
          Closing a cursor just exhausts all remaining data.
          """
          conn = self.connection
          if conn is None:
              return
          try:
              while self.nextset():
                  pass
          finally:
              self.connection = None
function_tokens: def close ( self ) : conn = self . connection if conn is None : return try : while self . nextset ( ) : pass finally : self . connection = None