Meador Inge <mead...@gmail.com> added the comment: On Sun, Dec 11, 2011 at 12:17 PM, sbt <rep...@bugs.python.org> wrote:
>> I don't really know that much about pickle, but Antoine mentioned that >> 'bytearray' >> works fine going from 3.2 to 2.7. Given that, can't we just compose 'bytes' >> with >> 'bytearray'? > > Yes, although it would only work for 2.6 and 2.7. Which is fine. 'bytes' and byte literals were not introduced until 2.6 [1,2]. So *any* solution we come up with is for >= 2.6. > They also produce more compact pickles, particularly codecs.latin_1_encode(). Now that is a better argument. [1] http://www.python.org/dev/peps/pep-0358/ [2] http://www.python.org/dev/peps/pep-3112/ ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13505> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com