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

Method __getattr__

tools/gh_api.py:30–34  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

28class Obj(dict):
29 """Dictionary with attribute access to names."""
30 def __getattr__(self, name):
31 try:
32 return self[name]
33 except KeyError:
34 raise AttributeError(name)
35
36 def __setattr__(self, name, val):
37 self[name] = val

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected