MCPcopy Create free account
hub / github.com/ipython/ipython / __getattr__

Method __getattr__

IPython/utils/shimmodule.py:88–94  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

86 return [name for name in dir(mod) if not name.startswith('_')]
87
88 def __getattr__(self, key):
89 # Use the equivalent of import_item(name), see below
90 name = "%s.%s" % (self._mirror, key)
91 try:
92 return import_item(name)
93 except ImportError:
94 raise AttributeError(key)

Callers

nothing calls this directly

Calls 1

import_itemFunction · 0.85

Tested by

no test coverage detected