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 amaury.forgeotdarc
Recipients amaury.forgeotdarc, facundobatista
Date 2013-10-16.17:07:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381943240.24.0.689011674275.issue19272@psf.upfronthosting.co.za>
In-reply-to
Content
Functions are pickled by name, not by code.
Unpickling will only work if a function with the same name is present in in the same module (__main__ in your example)

This is why pickling a lambda won't work: they have no individual names.
History
Date User Action Args
2013-10-16 17:07:20amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, facundobatista
2013-10-16 17:07:20amaury.forgeotdarcsetmessageid: <1381943240.24.0.689011674275.issue19272@psf.upfronthosting.co.za>
2013-10-16 17:07:20amaury.forgeotdarclinkissue19272 messages
2013-10-16 17:07:20amaury.forgeotdarccreate