[issue26519] Cython doesn't work anymore on Python 3.6

Serhiy Storchaka report at bugs.python.org
Wed Mar 9 12:54:51 EST 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue26519>
_______________________________________


More information about the Python-bugs-list mailing list