On 29 October 2012 13:32, Oscar Benjamin <[email protected]> wrote: > > def main(x, y='default'): > print(x) > print(y) > > if __name__ == "__main__": > main(sys.argv[1:])
A quick correction. That should be (note the *):
if __name__ == "__main__":
main(*sys.argv[1:])
Oscar
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
