Message264828
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). |
|
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 | |
|