Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ setdefault
Method
setdefault
Lib/os.py:746–749 ·
view source on GitHub ↗
(self, key, value)
Source
from the content-addressed store, hash-verified
744
return
dict(self)
745
746
def
setdefault(self, key, value):
747
if
key not in self:
748
self[key] = value
749
return
self[key]
750
751
def
__ior__(self, other):
752
self.update(other)
Callers
15
locale.py
File · 0.45
translation
Function · 0.45
get_importer
Function · 0.45
__init__
Method · 0.45
AddPackagePath
Function · 0.45
__set_name__
Method · 0.45
__new__
Method · 0.45
_add_value_alias_
Method · 0.45
_missing_
Method · 0.45
convert_class
Function · 0.45
register_optionflag
Function · 0.45
register
Method · 0.45
Calls
no outgoing calls
Tested by
1
register_optionflag
Function · 0.36