[issue42410] Raise a pickleError when convert _functools module to use PyType_FromModuleAndSpec

STINNER Victor report at bugs.python.org
Thu Nov 19 11:45:56 EST 2020


STINNER Victor <vstinner at python.org> added the comment:

> _pickle.PicklingError: Can't pickle <class 'functools.partial'>: it's not the same object as functools.partial

I don't understand this error. It looks like a bug in functools.

The PR 23407 looks like a workaround rather than a fix.

You should analyze why "cls != obj" conditon is true: why cls is not obj?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42410>
_______________________________________


More information about the Python-bugs-list mailing list