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 Kotan
Recipients Kotan, bethard, docs@python, eric.araujo, eric.smith, fdrake, gray_hemp
Date 2010-11-21.09:44:06
SpamBayes Score 1.0676168e-07
Marked as misclassified No
Message-id <1290332649.05.0.306123080407.issue9182@psf.upfronthosting.co.za>
In-reply-to
Content
Steven: From msg121850 I think the last two examples do not need the "--". Since there are no positional arguments, the "--" is not needed. However the following additional cases exist:

-x X [X ...] -y Y -- A B # since optionals might come in other order

Basically every of the three variable length classes need to be tested: ZeroOrOne, ZeroOrMore and OneOrMore. This might always come in a conflict with positional arguments needed afterward (even with optional positional arguments!).

BTW - I recognized the following seem to be supported:

for [-x [X ...]] -- [y ...] 
the following input: a -x -- b

I would expect to be 'a' and 'b' positional arguments and the optional '-x' has no argument. However this seem not to work. Another issue or desired behavior?
History
Date User Action Args
2010-11-21 09:44:09Kotansetrecipients: + Kotan, fdrake, bethard, eric.smith, eric.araujo, docs@python, gray_hemp
2010-11-21 09:44:09Kotansetmessageid: <1290332649.05.0.306123080407.issue9182@psf.upfronthosting.co.za>
2010-11-21 09:44:06Kotanlinkissue9182 messages
2010-11-21 09:44:06Kotancreate