[Python-Dev] string formatting and i18n

Barry Warsaw barry at python.org
Mon Sep 5 20:27:25 CEST 2005


On Mon, 2005-09-05 at 14:10, François Pinard wrote:

>   "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. :-)

Except that IME, %(var)s is an error-prone construct for translators.

-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-dev/attachments/20050905/a08d049c/attachment.pgp


More information about the Python-Dev mailing list