MCPcopy Index your code
hub / github.com/python/cpython / __getattr__

Function __getattr__

Lib/tarfile.py:3161–3167  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

3159
3160
3161def __getattr__(name):
3162 if name == "version":
3163 from warnings import _deprecated
3164
3165 _deprecated("version", remove=(3, 20))
3166 return "0.9.0" # Do not change
3167 raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
3168
3169
3170if __name__ == '__main__':

Callers

nothing calls this directly

Calls 1

_deprecatedFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…