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 Arfrever, alexandre.vassalotti, barry, josh.r, kitterma, nadeem.vawda, pitrou, python-dev, serhiy.storchaka
Date 2016-01-07.13:26:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452173188.04.0.935168171801.issue22995@psf.upfronthosting.co.za>
In-reply-to
Content
I can understand why. AFAIK Cython creates a class that stores attributes not in __dict__, but packed in a structure, as for __slots__. This increases the basicstate. But if it doesn't provide nor __dict__, nor __slotnames__, nor any pickle-related method, the default implementation object.__reduce_ex__ returned a value that didn't contain the full state of the object. Therefore the object couldn't be correctly unpickled, copied, or deepcopied. If this is true, there is a bug in Cython. But if deepcopying worked for Cython objects, we need to find how object's state is retrieved and take this into account in our code.

If this is Cython bug, may be we have to change an exception to a warning in maintained releases.
History
Date User Action Args
2016-01-07 13:26:28serhiy.storchakasetrecipients: + serhiy.storchaka, barry, pitrou, alexandre.vassalotti, nadeem.vawda, Arfrever, kitterma, python-dev, josh.r
2016-01-07 13:26:28serhiy.storchakasetmessageid: <1452173188.04.0.935168171801.issue22995@psf.upfronthosting.co.za>
2016-01-07 13:26:28serhiy.storchakalinkissue22995 messages
2016-01-07 13:26:27serhiy.storchakacreate