Module ptcompleter :: Class ParselTongueCompleter
[hide private]
[frames] | no frames]

Class ParselTongueCompleter

source code


Instance Methods [hide private]
 
attr_matches(self, text)
Compute matches when text contains a dot.
source code

Inherited from rlcompleter.Completer: __init__, complete, global_matches

Method Details [hide private]

attr_matches(self, text)

source code 

Compute matches when text contains a dot.

Assuming the text is of the form NAME.NAME....[NAME], and is evaluatable in self.namespace, it will be evaluated and its attributes (as revealed by dir()) are used as possible completions. (For class instances, class members are also considered.)

WARNING: this can still invoke arbitrary C code, if an object with a __getattr__ hook is evaluated.

Overrides: rlcompleter.Completer.attr_matches
(inherited documentation)