On Sep 5, 10:47 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I might just be being dumb tonight, but why doesn't this work: > > >>> '%s aaa %s aa %s' % ['test' for i in range(3)] > > Traceback (most recent call last): > File "<stdin>", line 1, in ? > TypeError: not enough arguments for format string >
Ah it just needs a tuple. I posted too soon I guess. >>> '%s aaa %s aa %s' % tuple(['test' for i in range(3)]) 'test aaa test aa test' -Greg -- http://mail.python.org/mailman/listinfo/python-list