Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in the sys module documentation #44707

Closed
daikinoko mannequin opened this issue Mar 13, 2007 · 2 comments
Closed

error in the sys module documentation #44707

daikinoko mannequin opened this issue Mar 13, 2007 · 2 comments
Labels
docs Documentation in the Doc dir

Comments

@daikinoko
Copy link
Mannequin

daikinoko mannequin commented Mar 13, 2007

BPO 1679652
Nosy @birkenfeld

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2007-03-13.13:23:09.000>
created_at = <Date 2007-03-13.09:57:53.000>
labels = ['invalid', 'docs']
title = 'error in the sys module documentation'
updated_at = <Date 2007-03-13.13:23:09.000>
user = 'https://bugs.python.org/daikinoko'

bugs.python.org fields:

activity = <Date 2007-03-13.13:23:09.000>
actor = 'georg.brandl'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['Documentation']
creation = <Date 2007-03-13.09:57:53.000>
creator = 'daikinoko'
dependencies = []
files = []
hgrepos = []
issue_num = 1679652
keywords = []
message_count = 2.0
messages = ['31503', '31504']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'daikinoko']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1679652'
versions = []

@daikinoko
Copy link
Mannequin Author

daikinoko mannequin commented Mar 13, 2007

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.

@daikinoko daikinoko mannequin closed this as completed Mar 13, 2007
@daikinoko daikinoko mannequin added invalid docs Documentation in the Doc dir labels Mar 13, 2007
@daikinoko daikinoko mannequin closed this as completed Mar 13, 2007
@daikinoko daikinoko mannequin added invalid docs Documentation in the Doc dir labels Mar 13, 2007
@birkenfeld
Copy link
Member

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

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

1 participant