On Jul 16, 8:10 pm, Karthik Gurusamy <[EMAIL PROTECTED]> wrote: > Since % by definition is string formatting, the operator should be > able to infer how to convert each of the argument into strings.
In addition to what Dan mentioned, you can use "%s" with any object to
perform an automatic string conversion.
>>> '%s %s %s %s' % ('Hello!', 3.14, 42+1j, object())
'Hello! 3.14 (42+1j) <object object at 0x41448>'
-Miles
--
http://mail.python.org/mailman/listinfo/python-list
