[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset bd71352e950f by Alexandre Vassalotti in branch 'default': Issue #6784: Strings from Python 2 can now be unpickled as bytes objects. http://hg.python.org/cpython/rev/bd71352e950f -- nosy: +python-dev ___

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-07 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I fixed up the last few review comments and submitted the patch. Thank you for the help! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Merlijn van Deen
Changes by Merlijn van Deen valhall...@gmail.com: Removed file: http://bugs.python.org/file24640/BytestrPickler_c.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Merlijn van Deen
Changes by Merlijn van Deen valhall...@gmail.com: Removed file: http://bugs.python.org/file24688/test_pickle.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Merlijn van Deen
Changes by Merlijn van Deen valhall...@gmail.com: Removed file: http://bugs.python.org/file24719/pickle_bytestr.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Merlijn van Deen
Changes by Merlijn van Deen valhall...@gmail.com: Removed file: http://bugs.python.org/file24906/pickle_bytes_code.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Merlijn van Deen
Changes by Merlijn van Deen valhall...@gmail.com: Removed file: http://bugs.python.org/file24907/pickle_bytes_tests.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Merlijn van Deen
Changes by Merlijn van Deen valhall...@gmail.com: Removed file: http://bugs.python.org/file24568/pickle.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Merlijn van Deen
Merlijn van Deen added the comment: Hi Alexandre, Attached is a diff based on r87793:0c508d87f80b. Merlijn -- Added file: http://bugs.python.org/file33011/bytestrpickle.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Merlijn van Deen
Merlijn van Deen added the comment: I have fixed most of the nits in this patch, except for: 1) the intermediate bytes object being created; inlining is an option, as storchaka suggested, but I'd rather have you decide what it should become before implementing it; 2) make clinic gives me

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I cleaned up the patch. I will submit it tonight if there is no major objections. -- Added file: http://bugs.python.org/file33019/pickle_python2_str_as_bytes.diff ___ Python tracker rep...@bugs.python.org

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: How about updating the documentation as well? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___ ___

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And what about an issue mentioned in msg153659? -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-12-05 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Could you provide a single patch with the implementation and the tests together? I will try to find some time this week to review this. -- assignee: docs@python - alexandre.vassalotti priority: normal - high stage: - patch review versions:

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-02-15 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___ ___ Python-bugs-list

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-12-17 Thread Mikhail Korobov
Changes by Mikhail Korobov kmik...@gmail.com: -- nosy: +kmike ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___ ___ Python-bugs-list mailing

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-03-17 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: Based on the discussion on python-dev [1], this is an updated implementation that uses encoding='bytes' to signal str-bytes behaviour. http://mail.python.org/pipermail/python-dev/2012-March/117536.html -- Added file:

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-03-17 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: ...and the tests to go with that. -- Added file: http://bugs.python.org/file24907/pickle_bytes_tests.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-03-03 Thread Merlijn van Deen
Changes by Merlijn van Deen valhall...@gmail.com: Removed file: http://bugs.python.org/file24567/test_bytestrpickle.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-03-03 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: OK, and now a version that's not broken... I forgot to initialize self-bytestr for PicklerObject/UnpicklerObject. *puts on the you-broke-the-build-hat* Except for test_packaging.test_caches, this version passes all tests --

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-03-03 Thread Merlijn van Deen
Changes by Merlijn van Deen valhall...@gmail.com: Removed file: http://bugs.python.org/file24714/pickle_bytestr.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-03-02 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: And a complete patch that implements the tests, the python implementation and the C implementation. I'm not completely happy with the code duplication in read_string/read_binstring/read_short_binstring C implementation, so that might be

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-29 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: Added tests in Lib/test format. After applying pickle.py.patch and BytestrPickler_c.diff, ./python -m test -v -m PyPicklerBytestrTests test_pickle returns 12 tests, no errors, while ./python -m test -v -m CPicklerBytestrTests

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-25 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: Ok, this is my first attempt at the Pickler part of the C implementation. I'll have to adapt the python implementation to match this one. All BytestrPicklerTests in test_bytestrpickle.py pass, and ./python -m test -G -v test_pickle

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-19 Thread Ronny Pfannschmidt
Ronny Pfannschmidt ronny.pfannschm...@gmail.com added the comment: im unlikely to find the time to try and fix pickle/cpickle myself in the next few months -- nosy: +Ronny.Pfannschmidt ___ Python tracker rep...@bugs.python.org

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-19 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: Last night, I hacked together a wrapper to do what loewis suggested [1]. It pickles bytes to str (for protocol = 2), and unpickles str to bytes. If I (ever) get the build system and tests of python itself to work, I'll try and see if I

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: If I (ever) get the build system and tests of python itself to work, If you have any problems with that, don't hesitate to ask on python-dev (or see http://mail.python.org/mailman/listinfo/core-mentorship ) --

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-19 Thread Merlijn van Deen
Changes by Merlijn van Deen valhall...@gmail.com: Added file: http://bugs.python.org/file24567/test_bytestrpickle.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-19 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: OK, this is the pickle.py patch. A new parameter 'bytestr' has been added to both _Pickler and _Unpickler to toggle the pickle.string=bytes behaviour: _Pickler: IF protocol = 2 AND bytestr=True THEN bytes are stored as

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-19 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: P.S. (sorry for forgetting this in the original post ;-)) Both ./python -m test -G -v test_pickle and ./python test_bytestrpickle.py pass, but I have not run the entire test suite, as that takes ~90 minutes on my laptop The

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-18 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: Any news on this? Just as a note, pickletools.py also does not reflect the current behaviour; pickle types STRING, BINSTRING and SHORT_BINSTRING are all defined with stack_after=[pystring]: [1, line 992] I(name='STRING',

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-14 Thread Merlijn van Deen
Changes by Merlijn van Deen valhall...@gmail.com: -- nosy: +valhallasw ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___ ___ Python-bugs-list

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2011-02-21 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___ ___ Python-bugs-list mailing list

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2011-02-02 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +jdharper ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___ ___ Python-bugs-list

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2009-09-14 Thread RonnyPfannschmidt
RonnyPfannschmidt ronny.pfannschm...@gmx.de added the comment: i'll try to add some tests now hopefully i can get rid of the implicit badness like trying to coerce bytes to unicode in unpickle and storing bytes as list in pickle for protocol 3 --

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2009-08-29 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Note that this is also a documentation issue: The pickle serialization format is guaranteed to be backwards compatible across Python releases. -- assignee: - georg.brandl components: +Documentation nosy: +gagenellina,

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2009-08-28 Thread RonnyPfannschmidt
Changes by RonnyPfannschmidt ronny.pfannschm...@gmx.de: -- title: byte/unicode pickle incompatibilities between python2 andand python3 - byte/unicode pickle incompatibilities between python2 and python3 ___ Python tracker