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 vstinner
Recipients marco.sulla, vstinner
Date 2016-03-14.14:33:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1457966008.38.0.44915906515.issue26555@psf.upfronthosting.co.za>
In-reply-to
Content
> Well, it's not what format() is doing now, using str()? :)

Hum, are you sure that you tried Python 3, and not Python 2?

str(bytes) on Python 3 is well defined:

>>> print(str(b'hello'))
b'hello'
>>> print(str('h\xe9llo'.encode('utf8')))
b'h\xc3\xa9llo'

I'm not sure that you expect the b'...' format. Non-ASCII characters are escaped as \xHH format.
History
Date User Action Args
2016-03-14 14:33:28vstinnersetrecipients: + vstinner, marco.sulla
2016-03-14 14:33:28vstinnersetmessageid: <1457966008.38.0.44915906515.issue26555@psf.upfronthosting.co.za>
2016-03-14 14:33:28vstinnerlinkissue26555 messages
2016-03-14 14:33:28vstinnercreate