There's a shorter answer and a longer answer to this question. The shorter answer is here. The longer answer will follow.

Tim Johnson wrote:
I'm using 2.6.5 on ubuntu 10.04.
I'm evaluating a very large string using a named-value formatting
scheme. The process fails with the following error message:
"""not enough arguments for format string"""
...
self.content = content % Evalx()
...
I don't really know how to debug this, except for to look for some
"%s" in the `content' string.

Er, that would be a good start. Without knowing what string is on the left side of the % operator, how do you know how many items need to be on the right side?



--
Steven
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to