Access to sys.argv when python interpreter is invoked in some modes like 'python -c "command"'
The python tutorial says "When the script name is given as '-' (meaning standard input), sys.argv[0] is set to '-'. When -c command is used, sys.argv[0] is set to '-c'. " but when we use a command say 'python -c "command"' where can we access "sys.argv" (are there some commands where "sys.argv" is
Input from the same file as the script
Can the input to the python script be given from the same file as the script itself. e.g., when we execute a python script with the command 'python http://mail.python.org/mailman/listinfo/python-list