[issue22890] StringIO.StringIO pickled in 2.7 is not unpickleable on 3.x

Jelle Zijlstra report at bugs.python.org
Thu Jun 2 21:12:54 EDT 2016


Jelle Zijlstra added the comment:

Unless I'm missing something, StringIO doesn't exist as a module in Python 3, as mentioned in https://docs.python.org/3.0/whatsnew/3.0.html#text-vs-data-instead-of-unicode-vs-8-bit.

If you're trying to unpickle in 3.x an object pickled by 2.7.x, I'm not sure there is a guarantee that unpickling works for objects in modules that were renamed between 2.x and 3.x. This also doesn't work if you pickle a ConfigParser in 2.7 and unpickle it in 3.x.

----------
nosy: +Jelle Zijlstra

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22890>
_______________________________________


More information about the Python-bugs-list mailing list