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 paul.j3
Recipients Arfrever, asvetlov, bethard, paul.j3, r.david.murray, telmich
Date 2013-04-19.05:35:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1366349721.69.0.871586491815.issue16308@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-04-19 05:35:21paul.j3setrecipients: + paul.j3, bethard, Arfrever, r.david.murray, asvetlov, telmich
2013-04-19 05:35:21paul.j3setmessageid: <1366349721.69.0.871586491815.issue16308@psf.upfronthosting.co.za>
2013-04-19 05:35:21paul.j3linkissue16308 messages
2013-04-19 05:35:21paul.j3create