This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author marco.sulla
Recipients marco.sulla
Date 2016-03-14.10:29:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1457951393.78.0.559454400626.issue26555@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-03-14 10:29:53marco.sullasetrecipients: + marco.sulla
2016-03-14 10:29:53marco.sullasetmessageid: <1457951393.78.0.559454400626.issue26555@psf.upfronthosting.co.za>
2016-03-14 10:29:53marco.sullalinkissue26555 messages
2016-03-14 10:29:53marco.sullacreate