MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / __init__

Method __init__

example_code/item_054.py:165–168  ·  view source on GitHub ↗
(self, cores=None, ram=None, disk=None)

Source from the content-addressed store, hash-verified

163
164class 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
171print("Example 9")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected