[ python-Bugs-1679652 ] error in the sys module documentation

SourceForge.net noreply at sourceforge.net
Tue Mar 13 14:23:09 CET 2007


Bugs item #1679652, was opened at 2007-03-13 09:57
Message generated for change (Comment added) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1679652&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: None
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: David Fillinger (daikinoko)
Assigned to: Nobody/Anonymous (nobody)
Summary: error in the sys module documentation

Initial Comment:
In this text from the sys module documentation: http://docs.python.org/lib/module-sys.html

"argv
    The list of command line arguments passed to a Python script. argv[0] is the script name (it is operating system dependent whether this is a full pathname or not). If the command was executed using the -c command line option to the interpreter, argv[0] is set to the string '-c'. If no script name was passed to the Python interpreter, argv has zero length."

the second argv[0] should be argv[1] because argv[0] is the name of the script.

----------------------------------------------------------------------

>Comment By: Georg Brandl (gbrandl)
Date: 2007-03-13 13:23

Message:
Logged In: YES 
user_id=849994
Originator: NO

No, it's correct as it is. There *is no* scriptname with -c.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1679652&group_id=5470


More information about the Python-bugs-list mailing list