[Python-Dev] PEP 292, Simpler String Substitutions

Guido van Rossum guido@python.org
Wed, 19 Jun 2002 09:05:32 -0400


> I agree that certain use cases make the exception problematic.  Think
> a program that uses a template entered remotely through the web.  That
> template could have misspellings in the variable substitutions.  In
> that case I think you'd like to carry on as best you can, by returning
> a string with the bogus placeholders still in the string.

That's a matter of validating the template before accepting it.

--Guido van Rossum (home page: http://www.python.org/~guido/)