[issue46871] Lambda can't be pickled with "spawn" and only "fork"

Ronald Oussoren report at bugs.python.org
Tue Mar 1 05:06:34 EST 2022


Ronald Oussoren <ronaldoussoren at mac.com> added the comment:

This is not a bug in CPython, at best this can be a feature request to make it possible to pickle lambda's (which IMHO is unlikely to happen).

The "fork" and "spawn" start methods result in different behaviour in how data is copied into the new worker proces and there's nothing we can do about this. Note that the same difference in behaviour can be observed on Windows, which does not support the "fork" method at all.

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> pending

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


More information about the Python-bugs-list mailing list