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

Method __init__

example_code/item_051.py:389–391  ·  view source on GitHub ↗
(self, distance, size)

Source from the content-addressed store, hash-verified

387print("Example 40")
388class Planet:
389 def __init__(self, distance, size):
390 self.distance = distance
391 self.size = size
392
393 def __repr__(self):
394 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected