Using percent signs with SafeConfigParser

Peter Otten __peter__ at web.de
Sun Apr 12 03:12:05 EDT 2009


Márcio Faustino wrote:

> On 11 Abr, 20:06, Peter Otten <__pete... at web.de> wrote:

>> (2) _interpvar_re has already butchered values like "%%(alpha)s" to "%"
> 
> Isn't that expected? I mean, one wouldn't write "%%(alpha)s", but
> instead "%%%(alpha)s" or "%(alpha)s" right?

"%%(alpha)s" would mean that you want the value to be "%(alpha)s" (unlikely,
but possible).

Peter



More information about the Python-list mailing list