[issue26555] string.format(bytes) raise warning
Marco Sulla
report at bugs.python.org
Mon Mar 14 06:29:53 EDT 2016
New submission from Marco Sulla:
Steps to reproduce
1. create a format_bytes.py with:
"Hello {}".format(b"World")
2. launch it with
python3 -bb format_bytes.py
Result:
Traceback (most recent call last):
File "format_bytes.py", line 1, in <module>
"Hello {}".format(b"World")
BytesWarning: str() on a bytes instance
Expected:
No warning
----------
components: Interpreter Core
messages: 261739
nosy: marco.sulla
priority: normal
severity: normal
status: open
title: string.format(bytes) raise warning
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26555>
_______________________________________
More information about the Python-bugs-list
mailing list