Source Code:
(back to article)
class MyClass: def __init__(self, x, y): self.x = x self.y = y obj = MyClass(1, 2) print(vars(obj))
Result:
Report an issue