Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ OldResistor
Class
OldResistor
example_code/item_058.py:51–59 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
49
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
57
58
def
set_ohms(self, ohms):
59
self._ohms = ohms
60
61
62
print(
"Example 2"
)
Callers
1
item_058.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected