On 29 Oct 2012 02:30, "Saad Javed" <sbja...@gmail.com> wrote:
>
> I've come up with this:
>
> try:
> sys.argv[1]
> x = sys.argv[1]
> main(x)
> except IndexError:
> main(x)
>
> It works but seems hackish.
>
> Saad

Saad,

The first sys.argv is not needed.

Notice how i have replied below the text i am quoting? That is the
preference of most on the list.

Best,

Brian Vdb
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to