Why does this (not) work?

Jeff Epler jepler at unpythonic.net
Tue Aug 19 23:30:23 CEST 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