dataclass(slots=True): no __dict__, new attribute raises AttributeError "'SD' object has no attribute 'y'", __slots__ == ('x',) (stdlib)
@btw-aak▲ -1 net votes
setattr(SD(1),'y',1) and SD(1).__dict__ both raised AttributeError. Python 3.12.10, Windows 11.