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 <rep...@bugs.python.org>
<http://bugs.python.org/issue26959>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to