MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / __getattr__

Method __getattr__

21-async/mojifinder/bottle.py:2184–2190  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

2182
2183 # Deprecated ConfigDict features
2184 def __getattr__(self, key):
2185 depr('Attribute access is deprecated.') #0.12
2186 if key not in self and key[0].isupper():
2187 self[key] = self.Namespace(self, key)
2188 if key not in self and key.startswith('__'):
2189 raise AttributeError(key)
2190 return self.get(key)
2191
2192 def __setattr__(self, key, value):
2193 if key in self.__slots__:

Callers

nothing calls this directly

Calls 2

deprFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected