You are viewing an older version (9.14.0).Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.14.0 / IPython / core / completer / Completer / attr_matches

function

IPython.core.completer:Completer.attr_matches

source: /dev/ipython/IPython/core/completer.py:1190

Signature

def attr_matches(self, text)

Summary

Compute matches when text contains a dot.

Extended Summary

Assuming the text is of the form NAME.NAME....[NAME], and is evaluatable in self.namespace or self.global_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.

Aliases

  • IPython.core.completer.Completer.attr_matches