[Zope-PTK] not all arguments converted error

Dieter Maurer dieter@handshake.de
Thu, 22 Mar 2001 21:14:31 +0100 (CET)


Sigve Tjora writes:
 > TypeError: not all arguments converted
 > 
 > 
 > What does this error mean?
This exception is raised by Python's "%" operator.

  This operator has the synopsis:

       format % tuple

  "format" contains some conversion specifiers (they all start with %,
  e.g. "%s", "%d" or "%4.2d").
  Each specifier converts (formats) one tuple element.

  Your exception is raised when the tuple contains more elements
  as are conversion specifiers.


Dieter