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/2002-June/025655.html below:

[Python-Dev] PEP 292, Simpler String Substitutions

[Python-Dev] PEP 292, Simpler String SubstitutionsBarry A. Warsaw barry@zope.com
Wed, 19 Jun 2002 22:53:32 -0400
>>>>> "AK" == Andrew Kuchling <akuchlin@mems-exchange.org> writes:

    AK> (Maybe a syntax-checker for %(...) strings would solve
    AK> Mailman's problems, and alleviate the plaintive cries for an
    AK> alternative interpolation syntax?)

If I had to do it over again, I would have used $name in i18n source
strings from the start.  It would have saved lots of headaches and
broken translations.  People just seem to get $names whereas they get
%(name)s wrong too often.

(Little known MM2.1 fact: you can actually convert your headers and
footers to $name substitutions, but it's a hack.  Later, it might be
required.  One of the outgrowths of experimenting with this was to add
a %(name)s checker and now bogus names in the %(...)s are flagged as
errors, while missing trailing `s's are flagged as warnings and
auto-corrected.)

-Barry




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