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 ethan.furman
Recipients amaury.forgeotdarc, docs@python, ethan.furman, facundobatista, jcea, python-dev, r.david.murray
Date 2013-10-18.07:57:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1382083067.53.0.499719632111.issue19272@psf.upfronthosting.co.za>
In-reply-to
Content
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 :)
History
Date User Action Args
2013-10-18 07:57:48ethan.furmansetrecipients: + ethan.furman, facundobatista, jcea, amaury.forgeotdarc, r.david.murray, docs@python, python-dev
2013-10-18 07:57:47ethan.furmansetmessageid: <1382083067.53.0.499719632111.issue19272@psf.upfronthosting.co.za>
2013-10-18 07:57:47ethan.furmanlinkissue19272 messages
2013-10-18 07:57:45ethan.furmancreate