parameters: (self, text)
return_statement: return matches
docstring: Compute matches when text is a simple name.
  
          Return a list of all keywords, built-in functions and names currently
          defined in self.namespace that match.
docstring_summary: Compute matches when text is a simple name.
docstring_tokens: Compute matches when text is a simple name .
function: def global_matches(self, text):
          """Compute matches when text is a simple name.
  
          Return a list of all keywords, built-in functions and names currently
          defined in self.namespace that match.
  
          """
          import keyword
          matches = []
          seen = {"__builtins__"}
          n = len(text)
          for word in keyword.kwlist:
              if word[:n] == text:
                  seen.add(word)
                  matches.append(word)
          for nspace in [self.namespace, __builtin__.__dict__]:
              for word, val in nspace.items():
                  if word[:n] == text and word not in seen:
                      seen.add(word)
                      matches.append(self._callable_postfix(val, word))
          return matches
function_tokens: def global_matches ( self , text ) : import keyword matches = [ ] seen = { "__builtins__" } n = len ( text ) for word in keyword . kwlist : if word [ : n ] == text : seen . add ( word ) matches . append ( word ) for nspace in [ self . namespace , __builtin__ . __dict__ ] : for word , val in nspace . items ( ) : if word [ : n ] == text and word not in seen : seen . add ( word ) matches . append ( self . _callable_postfix ( val , word ) ) return matches