Lines Matching refs:self
42 def __init__(self, namespace = None):
64 self.use_main_ns = 1
66 self.use_main_ns = 0
67 self.namespace = namespace
69 def complete(self, text, state):
76 if self.use_main_ns:
77 self.namespace = __main__.__dict__
92 self.matches = self.attr_matches(text)
94 self.matches = self.global_matches(text)
96 return self.matches[state]
100 def _callable_postfix(self, val, word):
111 def global_matches(self, text):
115 defined in self.namespace that match.
131 for nspace in [self.namespace, builtins.__dict__]:
135 matches.append(self._callable_postfix(val, word))
138 def attr_matches(self, text):
142 evaluable in self.namespace, it will be evaluated and its attributes
155 thisobject = eval(expr, self.namespace)
190 matches.append(self._callable_postfix(value, match))