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 deckar01
Recipients bethard, deckar01, docs@python, paul.j3
Date 2016-03-24.16:46:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
That is correct. (Thank you for whipping up a repro script from my description).

I appreciate the work around, but it is nearly as verbose as manually duplicating the parameters on the child and I would have to type up a large comment block to educate future developers on the hack.

Is there some documentation I am missing or is the "resolve" conflict handler broken?

> The parents= argument takes a list of ArgumentParser objects, collects all the positional and optional actions from them, and adds these actions to the ArgumentParser object being constructed.

It would be nice if the "error" conflict handler ignored conflicts when the actions are identical.

It should be expected that the "resolve" conflict handler would not modify the parents. It is exhibiting undocumented and undesirable side effect, which indicates to me that it is a bug not a missing feature.

As for the patch, I'm not sure why you would ever want "action_copy" to be False. It seems like creating copies to insulate the originals ignores the underlying issue that these parents are being mutated when the operation implies a union of properties with no side effects.

I don't think the fix for this should be behind an optional flag, I think the fix is to update "resolve" to take into consideration multiple parents like the custom conflict handler in your sample.
Date User Action Args
2016-03-24 16:46:19deckar01setrecipients: + deckar01, bethard, docs@python, paul.j3
2016-03-24 16:46:19deckar01setmessageid: <>
2016-03-24 16:46:19deckar01linkissue22401 messages
2016-03-24 16:46:19deckar01create