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 eric.smith
Recipients eric.araujo, eric.smith, gray_hemp
Date 2010-07-06.20:22:07
SpamBayes Score 0.034641314
Marked as misclassified No
Message-id <1278447729.03.0.846367232528.issue9182@psf.upfronthosting.co.za>
In-reply-to
Content
I get the same behavior in 2.7. Adding '--', I get:

>>> p.parse_args('-b 123 456 -- bla'.split())
Namespace(bar=[123, 456], foo='bla')

Which is what I expect.

Éric: From your comment, I'm not sure if you think it's a doc bug because '--' does work, or because it doesn't work without it. But I think it's working as designed. I'm closing this. If you think it's a doc bug, please reopen and change to the Documentation component.
History
Date User Action Args
2010-07-06 20:22:09eric.smithsetrecipients: + eric.smith, eric.araujo, gray_hemp
2010-07-06 20:22:09eric.smithsetmessageid: <1278447729.03.0.846367232528.issue9182@psf.upfronthosting.co.za>
2010-07-06 20:22:07eric.smithlinkissue9182 messages
2010-07-06 20:22:07eric.smithcreate