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