Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: The following "Works for me":
>>> import imp, cPickle >>> mymod = imp.load_module('mymod', *imp.find_module('codecs')) >>> cPickle.dumps(mymod.Codec(), cPickle.HIGHEST_PROTOCOL) '\x80\x02(cmymod\nCodec\nq\x01o}q\x02b.' Do you have a short test case to reproduce your problem? Does your code tweak sys.modules? ---------- nosy: +amaury.forgeotdarc __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2295> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com