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 ntroutman
Recipients ntroutman
Date 2009-03-18.17:38:00
SpamBayes Score 3.4038197e-09
Marked as misclassified No
Message-id <1237397884.22.0.0496569021312.issue5509@psf.upfronthosting.co.za>
In-reply-to
Content
I believe I've tracked down the problem. When you run a python module
directly (ie "python Foo.py") any classes defined in the module have
their '__module__' attribute set to '__main__'. Which means the pickle
says the class is in '__main__' of whatever module is trying to load the
file.

I think it would make more sense to actually include the module name,
this means that an external module need simply ensure that the pickled
class's module be imported with the correct name.
History
Date User Action Args
2009-03-18 17:38:04ntroutmansetrecipients: + ntroutman
2009-03-18 17:38:04ntroutmansetmessageid: <1237397884.22.0.0496569021312.issue5509@psf.upfronthosting.co.za>
2009-03-18 17:38:01ntroutmanlinkissue5509 messages
2009-03-18 17:38:00ntroutmancreate