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

Method __init__

example_code/item_025.py:75–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

73print("Example 8")
74class MyClass:
75 def __init__(self):
76 self.alligator = "hatchling"
77 self.elephant = "calf"
78
79a = MyClass()
80for key, value in a.__dict__.items():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected