[issue14191] argparse doesn't allow optionals within positionals

R. David Murray report at bugs.python.org
Mon Sep 4 18:15:07 EDT 2017


R. David Murray added the comment:

I've turned intermixed.patch into a PR.  I tweaked the documentation so that it does not refer to the details of the implementation.  I tweaked the implementation to have the 'try' start before the code that modifies the state, and did the line wrapping to <80 columns.

I have one concern about this patch: parse_intermixed_args doesn't support all of the argparse features.  It feels to me like it is worthwhile to add anyway, and maybe someone will figure out how to support more features later.  But I'd like at least one other committer to concur :)

Given concurrence I'll add news and what's new entries.

paul.j3: I'm trying to review argparse patches during this core sprint week, so if you have anything in particular you want me to focus on, please let me know.

----------
stage:  -> patch review
type: behavior -> enhancement
versions: +Python 3.7 -Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14191>
_______________________________________


More information about the Python-bugs-list mailing list