This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author MegaIng
Recipients Arusekk, MegaIng
Date 2021-08-20.11:47:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1629460080.07.0.0895189709427.issue43093@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-08-20 11:48:00MegaIngsetrecipients: + MegaIng, Arusekk
2021-08-20 11:48:00MegaIngsetmessageid: <1629460080.07.0.0895189709427.issue43093@roundup.psfhosted.org>
2021-08-20 11:48:00MegaInglinkissue43093 messages
2021-08-20 11:47:59MegaIngcreate