[New-bugs-announce] [issue22738] improve sys.argv, 'python -h' documentation

Van Ly report at bugs.python.org
Mon Oct 27 05:39:46 CET 2014

New submission from Van Ly:

I was looking at sys.argv from the reference guide. 

The font mix and change from v.2.7.5 to v.3.5.0a0 for sentence two of sys.argv (library/sys.html#module-sys) has made the second rendering of -c look capital when in fact it isn't.

--quote: from v.3.5.0a0 at library/sys.html#module-sys
If the command was executed using the -c command line option to the interpreter, argv[0] is set to the string '-c'.

--suggest: improve second sentence of sys.argv (v.2.7.5, v.3.5.0a0)
Call the Python interpreter with the option, -c str, and the value of argv[0] is '-c'.

--suggest: improve 'python -h' output
-c str : feed in a string as program (terminates option list)

assignee: docs at python
components: Documentation
messages: 230059
nosy: docs at python, vy0123
priority: normal
severity: normal
status: open
title: improve sys.argv, 'python -h' documentation
type: enhancement
versions: Python 2.7, Python 3.5

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list