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

Reply via email to