Message83766
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. |
|
Date |
User |
Action |
Args |
2009-03-18 17:38:04 | ntroutman | set | recipients:
+ ntroutman |
2009-03-18 17:38:04 | ntroutman | set | messageid: <1237397884.22.0.0496569021312.issue5509@psf.upfronthosting.co.za> |
2009-03-18 17:38:01 | ntroutman | link | issue5509 messages |
2009-03-18 17:38:00 | ntroutman | create | |
|