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-March/133612.html below:

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

[Python-Dev] PEP 461: Adding % formatting to bytes and bytearray -- Final, Take 3Ethan Furman ethan at stoneleaf.us
Thu Mar 27 19:34:24 CET 2014
On 03/27/2014 11:24 AM, Guido van Rossum wrote:
> On Thu, Mar 27, 2014 at 10:55 AM, Ethan Furman wrote:
>>
>> The biggest reason to use %s is to support a common code base for 2/3 endeavors.
>
> But it's mostly useless for that purpose. In Python 2, in practice %s doesn't mean "string". [...]

In Python 2 if one is using 'str' as a 'bytes' container, and doing interpolation, %s is the only choice available for 
other 'bytes' (aka other 'str's).  Note that I'm happy to be proven wrong on this point.  :)

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