Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ __init__
Method
__init__
example_code/item_058.py:52–53 ·
view source on GitHub ↗
(self, ohms)
Source
from the content-addressed store, hash-verified
50
print(
"Example 1"
)
51
class
OldResistor:
52
def
__init__(self, ohms):
53
self._ohms = ohms
54
55
def
get_ohms(self):
56
return
self._ohms
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected