Message187343
I submitted a patch to http://bugs.python.org/issue9253
The reason why subparser became optional in the latest release is that a old test for missing positionals was phased out, and new one added. Subparsers have always had a default 'required=False', but the old test did not actually pay attention to that attribute.
It is easy to change the default attribute, but that ends up exposing a bug in the new test (trying to ','.join[...,None,...]).
My patch corrects that, and exposes the 'required' attribute. It also has doc changes and test additions.
I could rewrite it so it does not change the API or the doc. |
|
Date |
User |
Action |
Args |
2013-04-19 05:35:21 | paul.j3 | set | recipients:
+ paul.j3, bethard, Arfrever, r.david.murray, asvetlov, telmich |
2013-04-19 05:35:21 | paul.j3 | set | messageid: <1366349721.69.0.871586491815.issue16308@psf.upfronthosting.co.za> |
2013-04-19 05:35:21 | paul.j3 | link | issue16308 messages |
2013-04-19 05:35:21 | paul.j3 | create | |
|