newbie question...

trfilmographer at trfilmographer at
Fri Dec 12 19:55:14 CET 2008

On Dec 12, 12:59 pm, r <rt8... at> wrote:
> yes, but your script will need to know hoe to handle this.the
> following will open a file who's name was passed to the script
> if len(sys.argv) > 1:
>     try:
>         open_file(fname=sys.argv[1])
>     except:
>         pass

ah, ok.  now what if I want the variable to be an integer that I
send?  for instance if I send 99 to the program, it is picking it up
as a string instead of an integer value.  How do I handle this with

More information about the Python-list mailing list