Message283245
| Author |
serhiy.storchaka |
| Recipients |
Ringding, Trundle, aronacher, benjamin.peterson, doko, jdemeyer, larry, ned.deily, prologic, python-dev, scoder, sebastinas, serhiy.storchaka, thansen, vstinner |
| Date |
2016年12月15日.06:21:03 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1481782863.31.0.137504514999.issue5322@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Yes, it was what the patch did by setting tp_new to slot_tp_new. The problem is that the same code is used for inherited __new__ and assigned in class body. It is hard to distinguish between these cases.
In any case I think that Cython shouldn't generate trivial __new__. This will help to change the order of __new__ resolution at least in 3.7. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年12月15日 06:21:03 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, doko, scoder, vstinner, larry, sebastinas, benjamin.peterson, ned.deily, aronacher, prologic, Trundle, Ringding, python-dev, jdemeyer, thansen |
| 2016年12月15日 06:21:03 | serhiy.storchaka | set | messageid: <1481782863.31.0.137504514999.issue5322@psf.upfronthosting.co.za> |
| 2016年12月15日 06:21:03 | serhiy.storchaka | link | issue5322 messages |
| 2016年12月15日 06:21:03 | serhiy.storchaka | create |
|