Re: Problem with string format

2009-03-11 Thread Terry Reedy
Mike314 wrote: Hello, I have a strange problem with the string format: '%s %s %s %s %s' % ['01', '02', '03', '04', '05'] Traceback (most recent call last): File stdin, line 1, in module TypeError: not enough arguments for format string But as soon I use tuple it is working: '%s %s %s

Problem with string format

2009-03-10 Thread Mike314
Hello, I have a strange problem with the string format: '%s %s %s %s %s' % ['01', '02', '03', '04', '05'] Traceback (most recent call last): File stdin, line 1, in module TypeError: not enough arguments for format string But as soon I use tuple it is working: '%s %s %s %s %s' % ('01

Re: Problem with string format

2009-03-10 Thread Steven D'Aprano
On Tue, 10 Mar 2009 22:07:59 -0700, Mike314 wrote: Hello, I have a strange problem with the string format: '%s %s %s %s %s' % ['01', '02', '03', '04', '05'] Traceback (most recent call last): File stdin, line 1, in module TypeError: not enough arguments for format string

Re: Problem with string format

2009-03-10 Thread Mensanator
On Mar 11, 12:07 am, Mike314 michae...@gmail.com wrote: Hello,    I have a strange problem with the string format: '%s %s %s %s %s' % ['01', '02', '03', '04', '05'] Traceback (most recent call last):   File stdin, line 1, in module TypeError: not enough arguments for format string

Re: Problem with string format

2009-03-10 Thread John Machin
On Mar 11, 4:07 pm, Mike314 michae...@gmail.com wrote: Hello,    I have a strange problem with the string format: '%s %s %s %s %s' % ['01', '02', '03', '04', '05'] Traceback (most recent call last):   File stdin, line 1, in module TypeError: not enough arguments for format string