Message371906
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". |
|
Date |
User |
Action |
Args |
2020-06-19 22:26:39 | eric.smith | set | recipients:
+ eric.smith, mbussonn |
2020-06-19 22:26:39 | eric.smith | set | messageid: <1592605599.75.0.923258724524.issue41041@roundup.psfhosted.org> |
2020-06-19 22:26:39 | eric.smith | link | issue41041 messages |
2020-06-19 22:26:39 | eric.smith | create | |
|