[issue26766] The result type of bytearray formatting is not stable
Serhiy Storchaka
report at bugs.python.org
Fri Apr 15 08:28:58 EDT 2016
Serhiy Storchaka added the comment:
Hmm, looks the result type is very unstable.
On release build:
>>> bytearray(b'hello %b') % b"world"
b'hello world'
>>> bytearray(b'hello %b') % b"wor"
b'hello wor'
On debug build:
>>> bytearray(b'hello %b') % b"world"
bytearray(b'hello world')
>>> bytearray(b'hello %b') % b"wor"
b'hello wor'
And current test_bytes.py is passed on release build, but is failed on debug build.
----------
priority: normal -> high
stage: commit review ->
title: Redundant check in bytearray_mod -> The result type of bytearray formatting is not stable
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26766>
_______________________________________
More information about the Python-bugs-list
mailing list