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 eddygeek
Recipients eddygeek
Date 2014-07-18.12:49:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
pickle.loads raises a TypeError when calling the datetime constructor, (then a UnicodeEncodeError in the load_reduce function).

A short test program & the log, including dis output of both PY2 and PY3 pickles, are available in this gist; and extract on stackoverflow:

I am using pickle.dumps(reply, protocol=2) in PY2 
then pickle._loads(pickled, fix_imports=True, encoding='latin1') in PY3
(tried None and utf-8 without success)

Native cPickle loads decoding fails too, I am only using pure python's _loads for debugging.

Sorry if this is misguided (first time here)
Date User Action Args
2014-07-18 12:49:52eddygeeksetrecipients: + eddygeek
2014-07-18 12:49:52eddygeeksetmessageid: <>
2014-07-18 12:49:52eddygeeklinkissue22005 messages
2014-07-18 12:49:52eddygeekcreate