Home | History | Annotate | Download | only in python2.7

Lines Matching refs:namespace

4 namespace (which defaults to __main__); when completing NAME.NAME..., it
44 def __init__(self, namespace = None):
47 Completer([namespace]) -> completer instance.
49 If unspecified, the default namespace where completions are performed
59 if namespace and not isinstance(namespace, dict):
60 raise TypeError,'namespace must be a dictionary'
62 # Don't bind to namespace quite yet, but flag whether the user wants a
63 # specific namespace or to use __main__.__dict__. This will allow us
65 if namespace is None:
69 self.namespace = namespace
79 self.namespace = __main__.__dict__
100 defined in self.namespace that match.
109 for nspace in [__builtin__.__dict__, self.namespace]:
119 evaluatable in self.namespace, it will be evaluated and its attributes
133 thisobject = eval(expr, self.namespace)