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.0346413
Marked as misclassified No
Message-id <>
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.
Date User Action Args
2010-07-06 20:22:09eric.smithsetrecipients: + eric.smith, eric.araujo, gray_hemp
2010-07-06 20:22:09eric.smithsetmessageid: <>
2010-07-06 20:22:07eric.smithlinkissue9182 messages
2010-07-06 20:22:07eric.smithcreate