# Python 3
class Point(tuple):
def __init__(self, x, y):
super().__init__((x, y))
Point(2, 3)
समस्या उपवर्गीकरण builtin प्रकार
TypeError: tuple() takes at most 1 argument (2 given)
क्यों में परिणाम होगा? इसके बजाय मुझे क्या करना चाहिए?
संभव डुप्लिकेट (http://stackoverflow.com/questions/1565374/subclassing-python-tuple-with-multiple-init-arguments) –