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-January/131596.html below:

[Python-Dev] PEP 461 - Adding % and {} formatting to bytes

[Python-Dev] PEP 461 - Adding % and {} formatting to bytes [Python-Dev] PEP 461 - Adding % and {} formatting to bytesEthan Furman ethan at stoneleaf.us
Wed Jan 15 03:24:02 CET 2014
On 01/14/2014 05:02 PM, Glenn Linderman wrote:
> On 1/14/2014 2:38 PM, Nick Coghlan wrote:
>>
>> I think Brett has the right idea: we shouldn't try to accept numbers
>> for %s in binary interpolation. If we limit it to just buffer
>> exporters and objects with a __bytes__ method then the problem goes away.
>>
>> The numeric codes all exist in Python 2, so the porting requirement to
>> the common 2/3 subset will be to update the cases of binary
>> interpolation of a number with %s to use an appropriate numeric
>> formatting code instead.
>>
> +1

Agreed, PEP updated.

--
~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