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

Method __getattr__

21-async/mojifinder/bottle.py:1934–1938  ·  view source on GitHub ↗
(self, name, default=unicode())

Source from the content-addressed store, hash-verified

1932 return default
1933
1934 def __getattr__(self, name, default=unicode()):
1935 # Without this guard, pickle generates a cryptic TypeError:
1936 if name.startswith('__') and name.endswith('__'):
1937 return super(FormsDict, self).__getattr__(name)
1938 return self.getunicode(name, default=default)
1939
1940class HeaderDict(MultiDict):
1941 """ A case-insensitive version of :class:`MultiDict` that defaults to

Callers

nothing calls this directly

Calls 1

getunicodeMethod · 0.95

Tested by

no test coverage detected