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

[Python-Dev] PEP 460: allowing %d and %f and mojibake

[Python-Dev] PEP 460: allowing %d and %f and mojibake [Python-Dev] PEP 460: allowing %d and %f and mojibakeMark Lawrence breamoreboy at yahoo.co.uk
Sun Jan 12 22:16:23 CET 2014
On 12/01/2014 21:06, Greg Ewing wrote:
> Paul Moore wrote:
>> I could easily argue at this point that this is the type of bug that
>> having %-formatting operations on bytes would encourage - %s means
>> "format a string" (from years of C and Python (text) experience) so I
>> automatically supply a string argument when using %s in a bytes
>> formatting context.
>
> So don't call it %s -- call it something else
> such as %b.
>

Sorry but you can't use %b as that'll confuse people who're used to it 
meaning "Month as locale’s abbreviated name." :)

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

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