Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ MyIntegerSubclass
Class
MyIntegerSubclass
example_code/item_055.py:130–132 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
128
129
print(
"Example 10"
)
130
class
MyIntegerSubclass(MyStringClass):
131
def
get_value(self):
132
return
int(self._MyStringClass__value)
133
134
foo = MyIntegerSubclass(
"5"
)
135
assert foo.get_value() == 5
Callers
1
item_055.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected