parameters: (self, text)
return_statement: return matches
docstring: Match attributes or global python names
docstring_summary: Match attributes or global python names
docstring_tokens: Match attributes or global python names
function: def python_matches(self, text):
          """Match attributes or global python names"""
          if "." in text:
              try:
                  matches = self.attr_matches(text)
                  if text.endswith('.') and self.omit__names:
                      if self.omit__names == 1:
                          # true if txt is _not_ a __ name, false otherwise:
                          no__name = (lambda txt:
                                      re.match(r'.*\.__.*?__',txt) is None)
                      else:
                          # true if txt is _not_ a _ name, false otherwise:
                          no__name = (lambda txt:
                                      re.match(r'\._.*?',txt[txt.rindex('.'):]) is None)
                      matches = filter(no__name, matches)
              except NameError:
                  # catches <undefined attributes>.<tab>
                  matches = []
          else:
              matches = self.global_matches(text)
          return matches
function_tokens: def python_matches ( self , text ) : if "." in text : try : matches = self . attr_matches ( text ) if text . endswith ( '.' ) and self . omit__names : if self . omit__names == 1 : # true if txt is _not_ a __ name, false otherwise: no__name = ( lambda txt : re . match ( r'.*\.__.*?__' , txt ) is None ) else : # true if txt is _not_ a _ name, false otherwise: no__name = ( lambda txt : re . match ( r'\._.*?' , txt [ txt . rindex ( '.' ) : ] ) is None ) matches = filter ( no__name , matches ) except NameError : # catches <undefined attributes>.<tab> matches = [ ] else : matches = self . global_matches ( text ) return matches