MCPcopy Create free account
hub / github.com/numpy/numpy / __getattr__

Function __getattr__

numpy/core/__init__.py:157–165  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

155
156
157def __getattr__(name):
158 # Deprecated 2022-11-22, NumPy 1.25.
159 if name == "MachAr":
160 warnings.warn(
161 "The `np.core.MachAr` is considered private API (NumPy 1.24)",
162 DeprecationWarning, stacklevel=2,
163 )
164 return _machar.MachAr
165 raise AttributeError(f"Module {__name__!r} has no attribute {name!r}")
166
167
168import copyreg

Callers

nothing calls this directly

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected