Using percent signs with SafeConfigParser

Márcio Faustino m.faustino at
Sun Apr 12 00:47:42 CEST 2009

On 11 Abr, 20:06, Peter Otten <__pete... at> wrote:
> I think you are right. Please file a bug report .

I will.

> IMO this doesn't fix the problem because
> (1) it allows "%%%" which is also incorrect

You're right, how about this one "(?<!%)%(?:%%)*(?!%)"?

> (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?

More information about the Python-list mailing list