Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ Machine
Class
Machine
example_code/item_054.py:164–168 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
162
self.speed = speed
163
164
class
Machine(ToDictMixin, JsonMixin):
165
def
__init__(self, cores=None, ram=None, disk=None):
166
self.cores = cores
167
self.ram = ram
168
self.disk = disk
169
170
171
print(
"Example 9"
)
Callers
1
__init__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected