Message282613
| 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:17 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, arigo, ncoghlan |
| 2016年12月07日 10:37:17 | serhiy.storchaka | set | messageid: <1481107037.43.0.30499654378.issue28884@psf.upfronthosting.co.za> |
| 2016年12月07日 10:37:17 | serhiy.storchaka | link | issue28884 messages |
| 2016年12月07日 10:37:17 | serhiy.storchaka | create |
|