Message241802
bytes.__str__ can already raise either a warning (-b)
>>> str('abcäöü'.encode('utf-8'))
__main__:1: BytesWarning: str() on a bytes instance
"b'abc\\xc3\\xa4\\xc3\\xb6\\xc3\\xbc'"
or error (-bb), which applies equally to implicit conversion by print():
>>> print('abcäöü'.encode('utf-8'))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
BytesWarning: str() on a bytes instance |
|
Date |
User |
Action |
Args |
2015-04-22 13:39:03 | eryksun | set | recipients:
+ eryksun, lemburg, vstinner, ezio.melotti |
2015-04-22 13:39:03 | eryksun | set | messageid: <1429709943.55.0.809019341921.issue24025@psf.upfronthosting.co.za> |
2015-04-22 13:39:03 | eryksun | link | issue24025 messages |
2015-04-22 13:39:03 | eryksun | create | |
|