Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ __init__
Method
__init__
example_code/item_053.py:164–166 ·
view source on GitHub ↗
(self, value)
Source
from the content-addressed store, hash-verified
162
163
class
ImplicitTrisect(MyBaseClass):
164
def
__init__(self, value):
165
super().__init__(value)
166
self.value /= 3
167
168
assert ExplicitTrisect(9).value == 3
169
assert AutomaticTrisect(9).value == 3
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected