Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
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_registry_accelerator
Method · 0.45
test_keys
Method · 0.45
test_empty_value
Method · 0.45
complete_metadata
Method · 0.45
test_wrap_socket
Function · 0.45
do_test
Method · 0.45
check_setdefault
Method · 0.45
test_anydbm_modification
Method · 0.45
test_empty_value
Method · 0.45
test_all
Method · 0.45
test_setdefault
Method · 0.45
test_setdefault_atomic
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected