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 <rep...@bugs.python.org>
<http://bugs.python.org/issue26766>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to