This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:38serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, eric.smith, ztane
2016-05-04 15:46:38serhiy.storchakasetmessageid: <1462376798.59.0.837669169598.issue26906@psf.upfronthosting.co.za>
2016-05-04 15:46:38serhiy.storchakalinkissue26906 messages
2016-05-04 15:46:38serhiy.storchakacreate