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: <[email protected]> |
| 2016-05-04 15:46:38 | serhiy.storchaka | link | issue26906 messages |
| 2016-05-04 15:46:38 | serhiy.storchaka | create | |
|