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

Function __getattr__

Lib/tabnanny.py:335–341  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

333
334
335def __getattr__(name):
336 if name == "__version__":
337 from warnings import _deprecated
338
339 _deprecated("__version__", remove=(3, 20))
340 return "6" # Do not change
341 raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
342
343
344if __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…