Alexandre Vassalotti <alexan...@peadrop.com> added the comment:

We just need make __getnewargs__ return bytes, instead of a unicode
string. So this is a single character fix.

I think we should reuse the ByteArraySubclass test case in test_bytes.py
to test for this bug. Incidentally, the reduce method of bytearray
should also be changed to emit bytes instead of a unicode string.

----------
keywords: +patch
Added file: http://bugs.python.org/file15394/fix_bytes_reduce.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7382>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to