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 alex, doko, pitrou, python-dev, serhiy.storchaka, vstinner
Date 2015-02-27.20:23:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1425068631.29.0.385832174391.issue22079@psf.upfronthosting.co.za>
In-reply-to
Content
This restriction was added because bad thing could happen when statically allocated class inherits dynamically allocated class. I don't remember the number of the issue where such example was exposed, may be Alex remember it.

Likely pygobject creates classes in not safe manner. It would be more correct to create pygobject classes with PyType_FromSpec(), but current code worked for it for years. May be it is not so easy to change pygobject. So may be we should revert changes in 2.7 or convert the error to the deprecation warning.

Is there similar issue with 3.4? There may be difference due to the difference of the lifetime of types in 2.x and 3.x.
History
Date User Action Args
2015-02-27 20:23:51serhiy.storchakasetrecipients: + serhiy.storchaka, doko, pitrou, vstinner, alex, python-dev
2015-02-27 20:23:51serhiy.storchakasetmessageid: <1425068631.29.0.385832174391.issue22079@psf.upfronthosting.co.za>
2015-02-27 20:23:51serhiy.storchakalinkissue22079 messages
2015-02-27 20:23:51serhiy.storchakacreate