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

Method set

Tools/c-analyzer/c_common/clsutil.py:86–93  ·  view source on GitHub ↗

Update the cached value for an object. This works even if the descriptor is read-only. This is particularly useful when initializing the object (e.g. in its __new__ or __init__).

(self, obj, value)

Source from the content-addressed store, hash-verified

84 cls.__del__ = __del__
85
86 def set(self, obj, value):
87 """Update the cached value for an object.
88
89 This works even if the descriptor is read-only. This is
90 particularly useful when initializing the object (e.g. in
91 its __new__ or __init__).
92 """
93 self.instances[id(obj)] = value
94
95
96class classonly:

Callers 12

__init__Method · 0.45
selectDirClickedMethod · 0.45
initGUIMethod · 0.45
notifyTestsDiscoveredMethod · 0.45
notifyRunningMethod · 0.45
notifyStoppedMethod · 0.45
notifyTestStartedMethod · 0.45
notifyTestFailedMethod · 0.45
notifyTestErroredMethod · 0.45
notifyTestSkippedMethod · 0.45
notifyTestFinishedMethod · 0.45

Calls 1

idFunction · 0.85

Tested by 12

__init__Method · 0.36
selectDirClickedMethod · 0.36
initGUIMethod · 0.36
notifyTestsDiscoveredMethod · 0.36
notifyRunningMethod · 0.36
notifyStoppedMethod · 0.36
notifyTestStartedMethod · 0.36
notifyTestFailedMethod · 0.36
notifyTestErroredMethod · 0.36
notifyTestSkippedMethod · 0.36
notifyTestFinishedMethod · 0.36