MCPcopy Index your code
hub / github.com/RustPython/RustPython / get

Method get

Lib/collections/__init__.py:1028–1029  ·  view source on GitHub ↗
(self, key, default=None)

Source from the content-addressed store, hash-verified

1026 return self.__missing__(key) # support subclasses that define __missing__
1027
1028 def get(self, key, default=None):
1029 return self[key] if key in self else default # needs to make use of __contains__
1030
1031 def __len__(self):
1032 return len(set().union(*self.maps)) # reuses stored hash values if possible

Callers 4

namedtupleFunction · 0.45
_workerFunction · 0.45
_process_workerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected