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 kmike
Recipients kmike
Date 2013-07-16.11:22:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I think REVERSE_IMPORT_MAPPING is wrong (see ). It relies on dictionary items order and maps 'collections' module to either UserString or UserList. This makes it impossible to unpickle collections module classes pickled by Python 3.x when using Python 2.x.

>>> import collections
>>> dct = collections.defaultdict()
>>> pickle.dumps(dct, protocol=1)
>>> pickle.dumps(dct, protocol=2, fix_imports=False)

I think pickling of instances of classes from other modules could also suffer. I don't think it is a good idea to map io to cStringIO or StringIO, or to map http.server to either BaseHTTPServer, SimpleHTTPServer or CGIHTTPServer.

Originally found this issue here:
Date User Action Args
2013-07-16 11:22:47kmikesetrecipients: + kmike
2013-07-16 11:22:47kmikesetmessageid: <>
2013-07-16 11:22:47kmikelinkissue18473 messages
2013-07-16 11:22:46kmikecreate