New submission from Fabio Sangiovanni: Originally posted by Russell Keith-Magee on Twitter: https://twitter.com/freakboy3742/status/812609675283681280
Reproduced successfully on Python 3.5.2 >>> x = bytearray(1) >>> y = {} >>> x % y Python3.5: bytearray(b'') Python3.6: bytearray(b'\x00') also: >>> bytearray([0,1]) % {} # same with [], (), range(42) bytearray(b'') >>> bytearray([1,0]) % {} bytearray(b'\x01') ---------- components: Interpreter Core messages: 284018 nosy: sanjioh priority: normal severity: normal status: open title: bytearray.__mod__() truncates on first \x00 type: behavior versions: Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29073> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com