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

bundles / IPython 9.11.0 / IPython / core / completer / Completer / attr_matches

function

IPython.core.completer:Completer.attr_matches

source: /IPython/core/completer.py :1186

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