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/2005-September/056198.html below:

[Python-Dev] string formatting and i18n

[Python-Dev] string formatting and i18n [Python-Dev] string formatting and i18nFrançois Pinard pinard at iro.umontreal.ca
Mon Sep 5 20:10:18 CEST 2005
[Barry Warsaw]

> Actually, this was part of the motivation behind PEP 292 and Template
> strings, because what you really want is named parameters, not
> positional parameters:

> 'The file $filename in directory $dir is read only'

> There are a few techniques for getting full i18n for Template strings.

Yet,

  "The file %(filename)s in directory %(dir)s is read only" % vars()

is already usable.  The need being already filled without Template
strings, it could hardly be presented as a motivation for them. :-)

-- 
François Pinard   http://pinard.progiciels-bpi.ca
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