2014-03-26 15:35 GMT+01:00 Ethan Furman <[email protected]>:
> -------------------------------------------------------------------------------
> Examples::
>
> >>> b'%a' % 3.14
> b'3.14'
>
> >>> b'%a' % b'abc'
> b'abc'
This one is wrong:
>>> repr(b'abc').encode('ascii', 'backslashreplace')
b"b'abc'"
Victor
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com