[issue39805] Copying functions doesn't actually copy them

Serhiy Storchaka report at bugs.python.org
Sun Feb 13 06:51:08 EST 2022


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

It is by design. Functions and types are pickled by name. The copy module uses the pickling protocol and only use different methods for performance or for non-pickleable objects. Changing this will break existing code.

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list