MCPcopy Index your code
hub / github.com/python/cpython / get

Method get

Lib/test/test_patma.py:2664–2665  ·  view source on GitHub ↗
(key, default=None)

Source from the content-addressed store, hash-verified

2662 class C(dict):
2663 @staticmethod
2664 def get(key, default=None):
2665 return 'bar'
2666
2667 x = C({'foo': 'bar'})
2668 match x:

Callers 15

__getitem__Method · 0.95
_get_test_codecFunction · 0.45
__replace__Method · 0.45
test_gc.pyFile · 0.45
__subclasscheck__Method · 0.45
mutatingMethod · 0.45
assert_logMethod · 0.45
test_keysMethod · 0.45
test_empty_valueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected