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@python nosy: +docs@python resolution: -> invalid stage: -> committed/rejected status: open -> closed versions: -Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19272> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com