Dataclasses and __repr__
- __repr__ is implemented
examples/oop/dataclasses/repr.py
from shapes import Point p1 = Point(2, 3, 'left') print(p1) # Point(x=2, y=3, name='left')
from shapes import Point p1 = Point(2, 3, 'left') print(p1) # Point(x=2, y=3, name='left')