[Python-Dev] PEP 461: Adding % formatting to bytes and bytearray -- Final, Take 2
Ethan Furman
ethan at stoneleaf.us
Sun Feb 23 20:47:51 CET 2014
On 02/22/2014 10:50 PM, Nikolaus Rath wrote:
> 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'?
Yup, thanks.
--
~Ethan~
More information about the Python-Dev
mailing list