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/131324.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 mojibakeGreg Ewing greg.ewing at canterbury.ac.nz
Sun Jan 12 23:12:45 CET 2014
Mark Lawrence wrote:
> I entirely agree.  This would also parallel the conversion flags given 
> here http://docs.python.org/3/library/string.html#format-string-syntax, 
> I quote "Three conversion flags are currently supported: '!s' which 
> calls str() on the value, '!r' which calls repr() and '!a' which calls 
> ascii()".

Except that ascii() does something rather different --
it's a variation on repr() rather than str(), and it
doesn't imply any encoding operation.

I think this parallel would be more confusing than
helpful.

-- 
Greg

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