[Python-Dev] PEP 461: Adding % formatting to bytes and bytearray -- Final, Take 2
Nikolaus Rath
Nikolaus at rath.org
Sun Feb 23 07:50:11 CET 2014
Ethan Furman <ethan at stoneleaf.us> writes:
> Example::
>
> >>> b'%4x' % 10
> b' a'
>
> >>> '%#4x' % 10
> ' 0xa'
>
> >>> '%04X' % 10
> '000A'
Shouldn't the second two examples also be bytes, ie. b'%#4x' instead of
'%#4x'?
Best,
-Nikolaus
--
Encrypted emails preferred.
PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C
»Time flies like an arrow, fruit flies like a Banana.«
More information about the Python-Dev
mailing list