MCPcopy 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.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
_missing_Method · 0.45
convert_classFunction · 0.45
register_optionflagFunction · 0.45
registerMethod · 0.45

Calls

no outgoing calls

Tested by 1

register_optionflagFunction · 0.36