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

Method __init__

example_code/item_055.py:119–120  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

117print("Example 9")
118class MyStringClass:
119 def __init__(self, value):
120 self.__value = value
121
122 def get_value(self):
123 return str(self.__value)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected