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 eryksun
Recipients eryksun, ezio.melotti, lemburg, vstinner
Date 2015-04-22.13:39:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429709943.55.0.809019341921.issue24025@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2015-04-22 13:39:03eryksunsetrecipients: + eryksun, lemburg, vstinner, ezio.melotti
2015-04-22 13:39:03eryksunsetmessageid: <1429709943.55.0.809019341921.issue24025@psf.upfronthosting.co.za>
2015-04-22 13:39:03eryksunlinkissue24025 messages
2015-04-22 13:39:03eryksuncreate