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 rb
Recipients benjamin.peterson, ntroutman, rb
Date 2009-12-05.18:51:49
SpamBayes Score 2.9442057e-07
Marked as misclassified No
Message-id <1260039111.48.0.694425541549.issue5509@psf.upfronthosting.co.za>
In-reply-to
Content
I've just been stung by this. I've noticed that this seems to apply to
both cPickle and pickle. Even worse, it causes different behaviour when
a program is run under pdb because __main__ is suddenly pdb rather than
the program itself.

So, in summary, neither pickle nor cPickle can pickle a class if it is
not defined in its own module? Surely this is an obvious deficiency of
pickle and if it is not going to be fixed it should at least be
documented as such?
History
Date User Action Args
2009-12-05 18:51:51rbsetrecipients: + rb, benjamin.peterson, ntroutman
2009-12-05 18:51:51rbsetmessageid: <1260039111.48.0.694425541549.issue5509@psf.upfronthosting.co.za>
2009-12-05 18:51:50rblinkissue5509 messages
2009-12-05 18:51:49rbcreate