Re: Give List to Format String - How To

2007-09-05 Thread Ben Finney
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > I might just be being dumb tonight, but why doesn't this work: Congratulations for finding the answer quickly, and thank you for letting us know the answer. In future, if you want to ask "why doesn't this work", please show us all three of: the e

Re: Give List to Format String - How To

2007-09-05 Thread Carsten Haese
On Thu, 2007-09-06 at 02:47 +, [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 "", line 1, in ? > TypeError: not enough arguments for format string To

Re: Give List to Format String - How To

2007-09-05 Thread [EMAIL PROTECTED]
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 "", line 1, in ? > TypeError: not enough arguments for format st