This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author muntyan
Recipients muntyan
Date 2008-11-29.05:03:58
SpamBayes Score 1.2364289e-05
Marked as misclassified No
Message-id <1227935040.48.0.357266334466.issue4458@psf.upfronthosting.co.za>
In-reply-to
Content
If you feed a dash as an argument to getopt.gnu_getopt() then it gets
lost, because the code only checks if the argument starts with a dash,
not if it's more than a dash (unlike getopt.getopt() which is correct).

Example:

>>> import getopt
>>> getopt.gnu_getopt('-', '')
([], [])
>>> getopt.getopt('-', '')
([], '-')
History
Date User Action Args
2008-11-29 05:04:00muntyansetrecipients: + muntyan
2008-11-29 05:04:00muntyansetmessageid: <1227935040.48.0.357266334466.issue4458@psf.upfronthosting.co.za>
2008-11-29 05:03:59muntyanlinkissue4458 messages
2008-11-29 05:03:58muntyancreate