Why doesn't the following work:
class CTest(tuple):
def __init__(self,arg):
if type(arg) is tuple:
super(CTest,self).__init__((2,2))
else:
super(CTest,self).__init__(arg)
a=CTest((1,1))
print a
The ouput is (1,1), while I expect to see (2,2).
Also, why do I get a deprecation warning that object.init() takes no parameters? What should I do instead?