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

bundles / IPython 9.11.0 / IPython / core / interactiveshell / InteractiveShell / _find_parts

staticmethod

IPython.core.interactiveshell:InteractiveShell._find_parts

source: /IPython/core/interactiveshell.py :1659

Signature

staticmethod def   _find_parts ( oname : str )  →  Tuple[bool, ListType[str]]

Summary

Given an object name, return a list of parts of this object name.

Extended Summary

Basically split on docs when using attribute access, and extract the value when using square bracket.

For example foo.bar[3].baz[x] -> foo, bar, 3, baz, x

Returns

: parts_ok: bool

whether we were properly able to parse parts.

: parts: list of str

extracted parts

Aliases

  • IPython.InteractiveShell._find_parts