[issue26766] Redundant check in bytearray_mod

Berker Peksag report at bugs.python.org
Fri Apr 15 08:12:20 EDT 2016


Berker Peksag added the comment:

Thanks! More examples:

Python 3.6:

>>> bytearray(b'hello %b') % b"world"
bytearray(b'hello world')
>>> bytearray(b'hello %b') % b"wor"
b'hello wor'

Python 3.5:

>>> bytearray(b'hello %b') % b"world"
bytearray(b'hello world')
>>> bytearray(b'hello %b') % b"wor"
bytearray(b'hello wor')

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26766>
_______________________________________


More information about the Python-bugs-list mailing list