[Python-Dev] Re: Alternative ImplementationforPEP292:SimpleString Substitutions

Raymond Hettinger raymond.hettinger at verizon.net
Sat Sep 11 08:57:24 CEST 2004


[Brett]
> I suspect stating exactly what a valid Python
> identifier contains as you did in parentheses above will be enough.

Given the template, u'¿Puede volver $hoy o $mañana?', you think $ma is
an intended placeholder name and that ñ should be a delimiter just like
whitespace and punctuation?

If end users always follow the rules, this will never come up.  If they
don't, should there be error message or a silent failure?



Raymond




More information about the Python-Dev mailing list