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/2008-June/080085.html below:

[Python-Dev] converting the stdlib to str.format

[Python-Dev] converting the stdlib to str.format [Python-Dev] converting the stdlib to str.formatGreg Ewing greg.ewing at canterbury.ac.nz
Fri Jun 6 05:39:33 CEST 2008
Nick Coghlan wrote:
> Maybe we should ditch support for 
> positional arguments and just accept a single dictionary as the sole 
> parameter to format().
> 
> "{num} occurs {num} times in this format string".format(dict(num=2))

If named arguments were to become mandatory, I'd want
to be able to write that as

   "...{num}...".format(num = 2)

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