[issue26959] pickle: respect dispatch for functions again

Serhiy Storchaka report at bugs.python.org
Sun Feb 19 13:58:51 EST 2017


Serhiy Storchaka added the comment:

Is saving global an atomic operation? Falling back to using reduce can be not safe if some data was written during saving global. That also might make error messages less helpful. Is not founding a function the only cause of PicklingError? Raising and catching an exception is not very efficient. Shouldn't the fallback be used for classes and C functions?

If add this feature the patch should be significantly reworked.

----------
nosy: +serhiy.storchaka
stage: patch review -> needs patch
type: behavior -> enhancement
versions: +Python 3.7 -Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26959>
_______________________________________


More information about the Python-bugs-list mailing list