[issue13503] improved efficiency of bytearray pickling by using bytes type instead of str
Antoine Pitrou
report at bugs.python.org
Wed Nov 30 03:14:17 CET 2011
Antoine Pitrou <pitrou at free.fr> added the comment:
The irony is that with protocol < 3, bytes should piggy-back on bytearray and not the reverse (since the bytearray constructor has the same semantics under 2.x and 3.x).
It also means that the latin1 encoding solution should probably be kept for protocol < 3. Using __reduce_ex__ should allow for such combination, AFAIK. I think a separate issue should be opened for bytes.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13503>
_______________________________________
More information about the Python-bugs-list
mailing list