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

Method __getattr__

numpy/distutils/fcompiler/environment.py:32–40  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

30 self.dump_variable(name)
31
32 def __getattr__(self, name):
33 try:
34 conf_desc = self._conf_keys[name]
35 except KeyError:
36 raise AttributeError(
37 f"'EnvironmentConfig' object has no attribute '{name}'"
38 ) from None
39
40 return self._get_var(name, conf_desc)
41
42 def get(self, name, default=None):
43 try:

Callers

nothing calls this directly

Calls 1

_get_varMethod · 0.95

Tested by

no test coverage detected