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 eric.smith
Recipients eric.smith, mbussonn
Date 2020-06-19.22:26:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1592605599.75.0.923258724524.issue41041@roundup.psfhosted.org>
In-reply-to
Content
To be unpickle-able, the code for f needs to be imported, which it can't be from the repl. Windows has this same issue, due to also not using fork().

From https://docs.python.org/3/library/pickle.html#what-can-be-pickled-and-unpickled: "Thus the defining module must be importable in the unpickling environment, and the module must contain the named object, otherwise an exception will be raised."

I'll wait a while to see who else chimes in, but I think this should be closed as "not a bug".
History
Date User Action Args
2020-06-19 22:26:39eric.smithsetrecipients: + eric.smith, mbussonn
2020-06-19 22:26:39eric.smithsetmessageid: <1592605599.75.0.923258724524.issue41041@roundup.psfhosted.org>
2020-06-19 22:26:39eric.smithlinkissue41041 messages
2020-06-19 22:26:39eric.smithcreate