Irit Katriel <iritkatr...@gmail.com> added the comment:
Can we close this now? >>> class A(object): ... def __new__(self): ... raise TypeError('i do not exist') ... >>> class B(A): ... __new__ = object.__new__ ... def __init__(self, x): ... self.x = x ... >>> B(1) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: object.__new__() takes exactly one argument (the type to instantiate) >>> ---------- nosy: +iritkatriel _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue5322> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com