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

Method get_value

example_code/item_055.py:122–123  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

120 self.__value = value
121
122 def get_value(self):
123 return str(self.__value)
124
125foo = MyStringClass(5)
126assert foo.get_value() == "5"

Callers

nothing calls this directly

Calls 1

get_valueMethod · 0.45

Tested by

no test coverage detected