Cornelius Krupp <trampch...@hotmail.de> added the comment:
I would also like to see this added, and I can also provided a usecase where I naturally came across this. I am helping on a parsing library which uses regular expressions internally. We allow the user to select the stdlib re module or the third party regex module and store the selected module as an attribute in multiple different objects, since those modules (by design) have pretty much compatible interfaces. This however makes it unpicklable, unless one adds a custom __reduce__ function for each of those classes. Most notably, this issue also extends to deepcopy and the multiprocessing module. ---------- nosy: +MegaIng _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43093> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com