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:46 | amaury.forgeotdarc | set | spambayes_score: 0.189912 -> 0.18991232 recipients: + amaury.forgeotdarc, gpk, georg.brandl |
| 2008年03月17日 10:09:45 | amaury.forgeotdarc | set | spambayes_score: 0.189912 -> 0.189912 messageid: <1205748585.74.0.344426592.issue2295@psf.upfronthosting.co.za> |
| 2008年03月17日 10:09:44 | amaury.forgeotdarc | link | issue2295 messages |
| 2008年03月17日 10:09:43 | amaury.forgeotdarc | create | |