[snip good reply from Peter] The other thing to remember is that there are implicit quotes: >>> d = {1:2} >>> "%(1)i"%d Traceback (most recent call last): File "<stdin>", line 1, in ? KeyError: 1 >>> "%(1)i"%d '2' - Josiah