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

Method setdefault

Lib/os.py:759–762  ·  view source on GitHub ↗
(self, key, value)

Source from the content-addressed store, hash-verified

757 return dict(self)
758
759 def setdefault(self, key, value):
760 if key not in self:
761 self[key] = value
762 return self[key]
763
764 def __ior__(self, other):
765 self.update(other)

Callers 15

write_documentsMethod · 0.45
add_eventMethod · 0.45
runFunction · 0.45
runFunction · 0.45
locale.pyFile · 0.45
translationFunction · 0.45
get_importerFunction · 0.45
__init__Method · 0.45
AddPackagePathFunction · 0.45
__set_name__Method · 0.45
__new__Method · 0.45
_add_value_alias_Method · 0.45

Calls

no outgoing calls

Tested by 1

register_optionflagFunction · 0.36