homepage

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 <1643037342.08.0.0543865936885.issue5322@roundup.psfhosted.org>
In-reply-to
Content
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)
>>>
History
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: <1643037342.08.0.0543865936885.issue5322@roundup.psfhosted.org>
2022年01月24日 15:15:42iritkatriellinkissue5322 messages
2022年01月24日 15:15:42iritkatrielcreate

AltStyle によって変換されたページ (->オリジナル) /