(self, text)
return matches
Compute matches when text is a simple name.
        Return a list of all names currently defined in self.namespace
        that match.
Compute matches when text is a simple name.
        Return a list of all names currently defined in self.namespace
        that match.
Compute matches when text is a simple name . Return a list of all names currently defined in self . namespace that match .
def global_matches(self, text):
        """
        Compute matches when text is a simple name.
        Return a list of all names currently defined in self.namespace
        that match.
        """

        matches = []
        n = len(text)

        for ns in (self.namespace,):
            for word in ns:
                if word[:n] == text:
                    matches.append(word)

        return matches
def global_matches ( self , text ) : matches = [ ] n = len ( text ) for ns in ( self . namespace , ) : for word in ns : if word [ : n ] == text : matches . append ( word ) return matches