Message264828
| Author |
serhiy.storchaka |
| Recipients |
eric.smith, gvanrossum, serhiy.storchaka, ztane |
| Date |
2016年05月04日.15:46:38 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1462376798.59.0.837669169598.issue26906@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
An alternative way is just call PyType_Ready from _PyType_Lookup if type->tp_mro is NULL.
Here is a patch against 2.7 that restores the solution from issue551412, but returns NULL if type->tp_mro is still NULL after calling PyType_Ready. I found one place in tests when this is happened (CIOTest.test_IOBase_finalize in test_io). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年05月04日 15:46:38 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, eric.smith, ztane |
| 2016年05月04日 15:46:38 | serhiy.storchaka | set | messageid: <1462376798.59.0.837669169598.issue26906@psf.upfronthosting.co.za> |
| 2016年05月04日 15:46:38 | serhiy.storchaka | link | issue26906 messages |
| 2016年05月04日 15:46:38 | serhiy.storchaka | create |
|