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 accessed. I can run 'python -c "import sys sys.argv", I
get an error message

-Tiro

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to