Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ __init__
Method
__init__
example_code/item_050.py:237–238 ·
view source on GitHub ↗
(self, value)
Source
from the content-addressed store, hash-verified
235
try
:
236
class
Float:
237
def
__init__(self, value):
238
self.value = value
239
240
241
print(my_pretty(Float(5.678)))
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected