[docs] [issue19272] Can't pickle lambda (while named functions are ok)

Ethan Furman report at bugs.python.org
Fri Oct 18 09:57:48 CEST 2013

Ethan Furman added the comment:

Added some clarification to the docs to make it clearer that lambda functions cannot be pickled.

Facundo [1], if you want to pursue being able to pickle lambda functions please open an enhancement issue.  Some of the questions that come to mind:

 1) for a random name, where will the name be stored  (I'm thinking a
    __pickle__ dict on the module)? 

 2) for pickling the code object itself, what are the ramifications
    (this is directly contrary to how pickle was designed) 

These questions should be discussed on PyDev, and will probably require a PEP.

[1] or anyone else :)

assignee:  -> docs at python
nosy: +docs at python
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed
versions:  -Python 3.3

Python tracker <report at bugs.python.org>

More information about the docs mailing list