Serhiy Storchaka added the comment: And may be bytearray_mod in 3.6 is not correct. In 3.5 it returns bytearray, in 3.6 it returns bytes. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue26766> _______________________________________