Beispiel #1
0
 def __new__(cls, data=None, parent=None):
     obj = Base.__new__(cls)
     obj.__setstate__(data)
     return obj
Beispiel #2
0
 def __new__(cls, x, y):
     r = Base.__new__(cls)
     r.x, r.y = x, y
     return r
Beispiel #3
0
 def __new__(cls, data=None, parent=None):
     obj = Base.__new__(cls)
     obj.__setstate__(data)
     return obj