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

Method __init__

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

Source from the content-addressed store, hash-verified

58print("Example 2")
59class BadRGB:
60 def __init__(self, green, red, blue): # Bad: Order swapped
61 self.red = red
62 self.green = green
63 self.bloe = blue # Bad: Typo
64
65
66print("Example 3")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected