MCPcopy
hub / github.com/numpy/numpy / get

Method get

numpy/lib/_npyio_impl.py:286–290  ·  view source on GitHub ↗

D.get(k,[,d]) returns D[k] if k in D, else d. d defaults to None.

(self, key, default=None, /)

Source from the content-addressed store, hash-verified

284 # of sphinx-docs. See gh-25964
285
286 def get(self, key, default=None, /):
287 """
288 D.get(k,[,d]) returns D[k] if k in D, else d. d defaults to None.
289 """
290 return Mapping.get(self, key, default)
291
292 def items(self):
293 """

Callers 15

find_missingFunction · 0.45
mainFunction · 0.45
wrapMethod · 0.45
conf.pyFile · 0.45
linkcode_resolveFunction · 0.45
hugepage_setupFunction · 0.45
__init__.pyFile · 0.45
check_fpu_modeFunction · 0.45
test_instance_methodsMethod · 0.45
_ureduceFunction · 0.45
get_fieldstructureFunction · 0.45
_recursive_rename_fieldsFunction · 0.45

Calls

no outgoing calls

Tested by 14

check_fpu_modeFunction · 0.36
test_instance_methodsMethod · 0.36
test_roots_dtypeMethod · 0.36
test_axis_countMethod · 0.36
roundtripMethod · 0.36
test_npzfile_dictFunction · 0.36
__array_ufunc__Method · 0.36
run_mypyFunction · 0.36
__add__Method · 0.36
__iadd__Method · 0.36
__array_wrap__Method · 0.36
test_inputMethod · 0.36