Why does this (not) work?

Jeff Epler jepler at unpythonic.net
Tue Aug 19 17:30:23 EDT 2003


try this:
>>> "%s - %s - %s" % (("test",)*3)

why else would
>>> 3 % 1 * 2
print 0 instead of 1?

Jeff





More information about the Python-list mailing list