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

Method __getitem__

tools/npy_tempita/__init__.py:410–417  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

408 raise AttributeError(name)
409
410 def __getitem__(self, key):
411 if 'default' in self:
412 try:
413 return dict.__getitem__(self, key)
414 except KeyError:
415 return dict.__getitem__(self, 'default')
416 else:
417 return dict.__getitem__(self, key)
418
419 def __repr__(self):
420 items = [

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected