Nathaniel Troutman <locutusofbe...@yahoo.com> added the comment: 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5509> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com