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

Method get

numpy/distutils/fcompiler/environment.py:42–50  ·  view source on GitHub ↗
(self, name, default=None)

Source from the content-addressed store, hash-verified

40 return self._get_var(name, conf_desc)
41
42 def get(self, name, default=None):
43 try:
44 conf_desc = self._conf_keys[name]
45 except KeyError:
46 return default
47 var = self._get_var(name, conf_desc)
48 if var is None:
49 var = default
50 return var
51
52 def _get_var(self, name, conf_desc):
53 hook, envvar, confvar, convert, append = conf_desc

Callers 15

set_verbosityFunction · 0.45
setupFunction · 0.45
parse_configFunction · 0.45
npy_pkg_config.pyFile · 0.45
ccompiler.pyFile · 0.45
_is_singleCPUMethod · 0.45
_getNCPUsMethod · 0.45
__cputypeMethod · 0.45
get_ipMethod · 0.45
__machineMethod · 0.45
_getNCPUsMethod · 0.45
_getNCPUsMethod · 0.45

Calls 1

_get_varMethod · 0.95

Tested by 9

get_targetsMethod · 0.36
arg_regexMethod · 0.36
expectMethod · 0.36
expect_baselineMethod · 0.36
expect_flagsMethod · 0.36
get_classFunction · 0.36
test_impliesMethod · 0.36
test_groupMethod · 0.36
test_extra_checksMethod · 0.36