passing command line arguments

Carsten Haese carsten at uniqsys.com
Fri Sep 7 13:40:35 EDT 2007


On Fri, 2007-09-07 at 12:47 -0400, Brian McCann wrote:
>  
> Hi,
>  
> when I run the script show_args2.py
> 
> # ./show_args2.py 1 2 3
> 
> I get the following error
> 
> Traceback (most recent call last):
>   File "./show_args2.py", line 4, in ?
>     print 'The arguments of %s are "%s"' %s \
>     NameError: name 's' is not defined

Start here: http://catb.org/~esr/faqs/smart-questions.html#before

-- 
Carsten Haese
http://informixdb.sourceforge.net





More information about the Python-list mailing list