parameters: (self, text, state)
docstring: Return the next possible completion for 'text'.
  
          This is called successively with state == 0, 1, 2, ... until it
          returns None.  The completion should begin with 'text'.
docstring_summary: Return the next possible completion for 'text'.
docstring_tokens: Return the next possible completion for text .
function: def complete(self, text, state):
          """Return the next possible completion for 'text'.
  
          This is called successively with state == 0, 1, 2, ... until it
          returns None.  The completion should begin with 'text'.
  
          """
          if self.use_main_ns:
              self.namespace = __main__.__dict__
  
          if state == 0:
              if "." in text:
                  self.matches = self.attr_matches(text)
              else:
                  self.matches = self.global_matches(text)
          try:
              return self.matches[state]
          except IndexError:
              return None
function_tokens: def complete ( self , text , state ) : if self . use_main_ns : self . namespace = __main__ . __dict__ if state == 0 : if "." in text : self . matches = self . attr_matches ( text ) else : self . matches = self . global_matches ( text ) try : return self . matches [ state ] except IndexError : return None