Message258620
A warning is already emitted if you enable it with the “-b” flag, which I recommend. You can even turn the warning into an error with “-bb”. And you can always use repr() or ascii() to inspect for a more robust inspection.
$ python3 -bb
Python 3.5.0 (default, Sep 20 2015, 11:28:25)
[GCC 5.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print(b"\xFF")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
BytesWarning: str() on a bytes instance
>>> print(repr(b"\xFF"))
b'\xff' |
|
Date |
User |
Action |
Args |
2016-01-19 20:46:56 | martin.panter | set | recipients:
+ martin.panter, doerwalter, vstinner, ezio.melotti, eryksun, jwezel |
2016-01-19 20:46:56 | martin.panter | set | messageid: <1453236416.18.0.31695536473.issue26151@psf.upfronthosting.co.za> |
2016-01-19 20:46:56 | martin.panter | link | issue26151 messages |
2016-01-19 20:46:55 | martin.panter | create | |
|