bdb112 wrote:
... the difference between ... print(" %d, %d, buckle my shoe" % (1,2)) ... and ... print(" %d, " + " %d, buckle my shoe" % (1,2)) # a bug or a feature?
A feature. a + b % c is a + (b % c) But do note that string constant concatentation is higher priority than the other operators. > print(" %d, " " %d, buckle my shoe" % (1,2)) --Scott David Daniels scott.dani...@acm.org -- http://mail.python.org/mailman/listinfo/python-list