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

Method __init__

example_code/item_025_example_07.py:22–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

20# Python 3.5
21class MyClass:
22 def __init__(self):
23 self.alligator = "hatchling"
24 self.elephant = "calf"
25
26a = MyClass()
27for key, value in a.__dict__.items():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected