MCPcopy Create free account
hub / github.com/ActiveState/code / set

Method set

recipes/Python/66061_Assign_and_test/recipe-66061.py:11–11  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

9class DataHolder:
10 def __init__(self, value=None): self.value = value
11 def set(self, value): self.value = value; return value
12 def get(self): return self.value
13# optional but handy, if you use this a lot, either or both of:
14setattr(__builtins__,'DataHolder',DataHolder)

Callers 3

recipe-66061.pyFile · 0.45
shutdownMethod · 0.45
joinMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected