Re: Problem with The Formatting Operator

Guido.van.Rossum@cwi.nl
Thu, 09 Feb 1995 11:42:59 +0100

> when I try to print a string containing literal '%' _and_
> variable-references-by-name I get stuck.
[examples]

Kai! Yet another glitch in the formatting code. Luckily, it's easy
to fix in the source code:

diff -r2.23 stringobject.c
916c916
< if (dict && (argidx < arglen)) {

---
>                         if (dict && (argidx < arglen) && c != '%') {

--Guido van Rossum, CWI, Amsterdam <mailto:Guido.van.Rossum@cwi.nl> <http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>