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

Method get_value

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

Source from the content-addressed store, hash-verified

129print("Example 10")
130class MyIntegerSubclass(MyStringClass):
131 def get_value(self):
132 return int(self._MyStringClass__value)
133
134foo = MyIntegerSubclass("5")
135assert foo.get_value() == 5

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected