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

Method __init__

example_code/item_051.py:52–55  ·  view source on GitHub ↗
(self, red, green, blue)

Source from the content-addressed store, hash-verified

50print("Example 1")
51class RGB:
52 def __init__(self, red, green, blue):
53 self.red = red
54 self.green = green
55 self.blue = blue
56
57
58print("Example 2")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected