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

Function __getattr__

Lib/imaplib.py:1969–1975  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

1967
1968
1969def __getattr__(name):
1970 if name == "__version__":
1971 from warnings import _deprecated
1972
1973 _deprecated("__version__", remove=(3, 20))
1974 return "2.60" # Do not change
1975 raise AttributeError(f"module {__name__!r} has no attribute {name!r}")

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…