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

2016-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is the _compat_pickle module that purposed to support backward and forward compatibility for renamed or moved classes and modules. StringIO.StringIO in 2.x corresponds to io.StringIO or io.BytesIO. The problem is that we can't determine what of classes

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

2016-06-02 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

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

2016-06-02 Thread Jelle Zijlstra
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

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

2015-02-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The issue is about StringIO.StringIO, not io.StringIO. -- ___ Python tracker ___ ___ Python-bugs-l

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

2015-02-27 Thread Mark Lawrence
Mark Lawrence added the comment: Seems fine on Windows 8.1 c:\Users\Mark\Documents\MyPython>c:\cpython\PCbuild\amd64\python.exe Python 3.5.0a1+ (default:344d57c521b9+, Feb 27 2015, 13:39:56) [MSC v.1800 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more informati

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

2014-11-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: StringIO.StringIO is pickleable and unpickleable on 2.7 but is not unpickleable on 3.x. Python 2.7: >>> import pickle, StringIO >>> pickle.dumps(StringIO.StringIO('abc'), 2) '\x80\x02(cStringIO\nStringIO\nq\x00oq\x01}q\x02(U\tsoftspaceq\x03K\x00U\x07buflist