On Thu, 09 Sep 2010 12:38:04 +1200, Lawrence D'Oliveiro wrote: > In message <mailman.501.1283789339.29448.python-l...@python.org>, Hugo > Arts wrote: > >> sys.argv is a list of all arguments from the command line ... > > Interesting that Python didn’t bother to mimic the underlying POSIX > convention of passing the command line as arguments to the mainline > routine.
What mainline routine? > I always felt it was more useful to have command arguments directly > accessible as globals, rather than having to pass them from the > mainline. http://c2.com/cgi/wiki?GlobalVariablesAreBad That's why we have namespaces. If you need the command line arguments, you just import sys and you have access to them. -- Steven -- http://mail.python.org/mailman/listinfo/python-list