def __new__(cls, data=None, parent=None): obj = Base.__new__(cls) obj.__setstate__(data) return obj
def __new__(cls, x, y): r = Base.__new__(cls) r.x, r.y = x, y return r