[Python-Dev] string formatting and i18n (original) (raw)
François Pinard pinard at iro.umontreal.ca
Mon Sep 5 20:10:18 CEST 2005
- Previous message: [Python-Dev] string formatting and i18n
- Next message: [Python-Dev] string formatting and i18n
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[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 filenameindirectoryfilename in directory filenameindirectorydir 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
- Previous message: [Python-Dev] string formatting and i18n
- Next message: [Python-Dev] string formatting and i18n
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]