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

Method setdefault

Lib/test/test_zoneinfo/test_zoneinfo.py:1646–1647  ·  view source on GitHub ↗
(self, key, value)

Source from the content-addressed store, hash-verified

1644 def get(self, key, default=None):
1645 return default
1646 def setdefault(self, key, value):
1647 return 1337
1648
1649 class ZI(self.klass):
1650 pass

Callers 15

test_keysMethod · 0.45
test_empty_valueMethod · 0.45
complete_metadataMethod · 0.45
test_wrap_socketFunction · 0.45
do_testMethod · 0.45
check_setdefaultMethod · 0.45
test_empty_valueMethod · 0.45
test_allMethod · 0.45
test_setdefaultMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected