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 amaury.forgeotdarc
Recipients amaury.forgeotdarc, georg.brandl, gpk
Date 2008-03-17.10:09:42
SpamBayes Score 0.18991232
Marked as misclassified No
Message-id <1205748585.74.0.344426592.issue2295@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2008-03-17 10:09:46amaury.forgeotdarcsetspambayes_score: 0.189912 -> 0.18991232
recipients: + amaury.forgeotdarc, gpk, georg.brandl
2008-03-17 10:09:45amaury.forgeotdarcsetspambayes_score: 0.189912 -> 0.189912
messageid: <1205748585.74.0.344426592.issue2295@psf.upfronthosting.co.za>
2008-03-17 10:09:44amaury.forgeotdarclinkissue2295 messages
2008-03-17 10:09:43amaury.forgeotdarccreate