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 v+python
Recipients monkeyman79, paul.j3, r.david.murray, v+python
Date 2021-01-25.22:30:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <caf77b0d-474d-2e64-50bd-4ababf071225@g.nevcal.com>
In-reply-to <1611607401.64.0.971813856618.issue42973@roundup.psfhosted.org>
Content
On 1/25/2021 12:43 PM, Tadek Kijkowski wrote:
> Tadek Kijkowski <tkijkowski@gmail.com> added the comment:
>
> I added tests and docs to the PR. How does it look now?
Could you send me the docs privately?

I'm trying to understand what you are suggesting, without reading the code.

I realize that you are trying to apply different values of optional 
parameters to positional parameters... how are you saving that context? 
Is it up to the special handler of the positional parameter to read and  
save the values of the optional parameters specified so far? What about 
the ones unspecified so far? Can one even read and save the default value?

And where does it get stored? Is the value of the positional parameter 
turned into a dict or class containing its own value + the saved 
optional parameters?

I do agree that the even though the parse_intermixed_args was sufficient 
for the use case I had at the time, and has been sufficient for me so 
far, that it  not fully flexible, and I think I have seen Unix command 
line programs that had rich semantics similar to what you are proposing, 
where the sequence of repeated optional args could affect handling of 
later positionals but not earlier ones.

So I applaud your efforts here, but simply reading the issue, and having 
forgotten most of the internal workings of argument parser since getting 
the compromise going, I think reading your docs would help clarify it 
for me.
History
Date User Action Args
2021-01-25 22:30:37v+pythonsetrecipients: + v+python, r.david.murray, paul.j3, monkeyman79
2021-01-25 22:30:37v+pythonlinkissue42973 messages
2021-01-25 22:30:37v+pythoncreate