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 serhiy.storchaka
Recipients arigo, ncoghlan, serhiy.storchaka
Date 2016-12-07.10:37:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1481107037.43.0.30499654378.issue28884@psf.upfronthosting.co.za>
In-reply-to
Content
(B5) seems was just fixed in issue5322.

>>> class C: __new__ = int.__new__
... 
>>> C()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: int.__new__(C): C is not a subtype of int
>>> class C(int): __new__ = object.__new__
... 
>>> C()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: object.__new__(C) is not safe, use int.__new__()
History
Date User Action Args
2016-12-07 10:37:17serhiy.storchakasetrecipients: + serhiy.storchaka, arigo, ncoghlan
2016-12-07 10:37:17serhiy.storchakasetmessageid: <1481107037.43.0.30499654378.issue28884@psf.upfronthosting.co.za>
2016-12-07 10:37:17serhiy.storchakalinkissue28884 messages
2016-12-07 10:37:17serhiy.storchakacreate