This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iritkatriel
Recipients Ringding, Trundle, aronacher, benjamin.peterson, doko, iritkatriel, jdemeyer, larry, ned.deily, ppperry, prologic, python-dev, scoder, sebastinas, serhiy.storchaka, thansen, vstinner
Date 2022-01-24.15:15:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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)
Date User Action Args
2022-01-24 15:15:42iritkatrielsetrecipients: + iritkatriel, doko, scoder, vstinner, larry, sebastinas, benjamin.peterson, ned.deily, aronacher, prologic, Trundle, Ringding, python-dev, serhiy.storchaka, jdemeyer, ppperry, thansen
2022-01-24 15:15:42iritkatrielsetmessageid: <>
2022-01-24 15:15:42iritkatriellinkissue5322 messages
2022-01-24 15:15:42iritkatrielcreate