MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / __set__

Method __set__

example_code/item_064.py:63–64  ·  view source on GitHub ↗
(self, instance, value)

Source from the content-addressed store, hash-verified

61 return getattr(instance, self.internal_name, "")
62
63 def __set__(self, instance, value):
64 setattr(instance, self.internal_name, value)
65
66
67print("Example 3")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected