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

Function __getattr__

Lib/tkinter/font.py:202–208  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

200
201
202def __getattr__(name):
203 if name == "__version__":
204 from warnings import _deprecated
205
206 _deprecated("__version__", remove=(3, 20))
207 return "0.9" # Do not change
208 raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
209
210
211# --------------------------------------------------------------------

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…