[issue6977] Getopt documentation ambiguity
SilentGhost
report at bugs.python.org
Wed Sep 23 14:08:13 CEST 2009
New submission from SilentGhost <michael.mischurow+bpo at gmail.com>:
the following
>>> getopt.getopt('--testing=dr'.split(), '', ['testing'])[0]
would raise 'option --testing must not have an argument'.
Documentation reads, however: "Long options which require an argument
should be followed by an equal sign ('=')." Which is equivalent to
"options that don't require an argument, should not be followed by the
equal sign". The fact that in my example argument is not required does
not mean that argument cannot be passed.
----------
assignee: georg.brandl
components: Documentation, Library (Lib)
messages: 93033
nosy: SilentGhost, georg.brandl
severity: normal
status: open
title: Getopt documentation ambiguity
versions: Python 2.6, Python 3.1
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6977>
_______________________________________
More information about the Python-bugs-list
mailing list