[Python-Dev] PEP 292, Simpler String Substitutions

Donald Beaudry Donald Beaudry <donb@abinitio.com>
Wed, 19 Jun 2002 20:53:38 -0400


"Delaney, Timothy" <tdelaney@avaya.com> wrote,
> > From: barry@zope.com [mailto:barry@zope.com]
> > 
> > >>>>> "MS" == Martin Sjögren <martin@strakt.com> writes:
> > 
> >     MS> What's the advantage of using ${name} and ${country} instead?
> > 
> > There's a lot of empirical evidence that %(name)s is quite error
> > prone.
> 
> Perhaps an unadorned %(name) should default to %(name)s?

The problem is knowing that it's unadorned.  Now an unadorned %{name}
could could be interpreted as %(name)s.

--
Donald Beaudry                                     Ab Initio Software Corp.
                                                   201 Spring Street
donb@abinitio.com                                  Lexington, MA 02421
                         ...So little time...