[Python-Dev] PEP 292, Simpler String Substitutions

Gustavo Niemeyer niemeyer@conectiva.com
Wed, 19 Jun 2002 11:40:36 -0300


[...]
> but in that case, I completely fail to see why he couldn't
> just as well do the substitution inside the "_" function:
> 
>     return _('${name} was born in ${country}')
[...]

That would parse every translated string, which doesn't seem
reasonable. My vote is for sub()-like, inside an extension module.

-- 
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]