Message109420
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:09 | eric.smith | set | recipients:
+ eric.smith, eric.araujo, gray_hemp |
2010-07-06 20:22:09 | eric.smith | set | messageid: <1278447729.03.0.846367232528.issue9182@psf.upfronthosting.co.za> |
2010-07-06 20:22:07 | eric.smith | link | issue9182 messages |
2010-07-06 20:22:07 | eric.smith | create | |
|