A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-February/132717.html below:

[Python-Dev] PEP 461: Adding % formatting to bytes and bytearray -- Final, Take 2

[Python-Dev] PEP 461: Adding % formatting to bytes and bytearray -- Final, Take 2 [Python-Dev] PEP 461: Adding % formatting to bytes and bytearray -- Final, Take 2Ethan 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4