Serhiy Storchaka added the comment:

Cython 0.23.4 was released at 2015-10-10. The fix was applied 2016-01-16. Try 
to use Cython from trunk. May be this is not exactly the same bug and Cython 
needs other fix.

The change is deliberate. It helps to find existing bugs.

Except trivial case when your extension class has no any fields in additional 
to pickleable parent class, the class needs to provide some combinations of 
__getstate__, __setstate__, __getnewargs__/__getnewargs_ex__ and 
__reduce__/__reduce_ex__ to be pickleable. This was said in PEP 307. Previously 
you silently produced invalid pickle and got an exception or invalid object 
when unpickle it. Now you more likely get an exception at pickling time.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26519>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to