As the other side of the "Edit war" this post is probably about, here is my side of the story. I happened across this question where I noticed the following content:
I was using Python 3.2 here back in 2012.
It turns out that BooleanOptionalAction
has been added in Python 3.9's version of argparse
and solves this problem, and I've changed my accepted answer to the new one. But, other answers on this page should help if you're still using a Python prior to 3.9.
The first line at first appears to be useful but in this case ends up being irrelevant since the question is a "How to" question and applies to multiple versions of Python. The next paragraph is a mixture of some information that really belongs in the answers and some "meta commentary" namely being:
I've changed my accepted answer to the new one
I edited the question and removed these lines. In retrospection my edit summary didn't really cover everything properly and the "meta commentary" part was misunderstood. You later edited the question again and added the following:
The answer for this question before Python 3.9 is different than the answer after. The accepted answer is for Python 3.9 and later.
Given my previous edit summary didn't really convey my reasoning properly I thought you had misunderstood me and edited again to remove these lines along with the edit summary explaining that the answers already covered that information and the question doesn't need to mention that.
To clarify your misunderstanding I don't believe that information about answers being version specific is meta-commentary, I also agree that the information is useful but as already mentioned by other answers here it belongs in the answers and not in the questions.
As a learning for me I'll try to make my edit summaries better in the future.
BooleanOptionalAction
(which already mentions it is a feature introduced in version 3.9) the other answers probably still apply. I could edit them and say that there's a better answer for version 3.9+ but I am not sure if that would not be considered rude by the answers authors (Since that is redirecting people to other answers than theirs).