The argparse docs have become pretty lengthy. This is in part due to the examples, which are somewhat duplicative of the tutorial. I'd like to go through the docs to see if we can dedupe and pare things down to make them more readable.
I believe that argparse does not need to display sample code, only the public API needs to be shown.
I disagree, argparse is part of the public API and sample code is useful to show how to use it.
Merge branch 'main' into pythongh-124478
GH-124478: Cleanup argparse documentation (#124877)
[3.13] pythonGH-124478: Cleanup argparse documentation (pythonGH-124877)
[3.13] GH-124478: Cleanup argparse documentation (GH-124877) (#125162)
[3.12] GH-124478: Cleanup argparse documentation (GH-124877) (#125164)
pythonGH-124478: Cleanup argparse documentation (python#124877)
Activity
rruuaanng commented on Sep 26, 2024
I believe that argparse does not need to display sample code, only the public API needs to be shown.
hugovk commented on Sep 26, 2024
I disagree, argparse is part of the public API and sample code is useful to show how to use it.
Merge branch 'main' into pythongh-124478
Merge branch 'main' into pythongh-124478
Merge branch 'main' into pythongh-124478
GH-124478: Cleanup argparse documentation (#124877)
[3.13] pythonGH-124478: Cleanup argparse documentation (pythonGH-124877)
[3.13] GH-124478: Cleanup argparse documentation (GH-124877) (#125162)
[3.12] GH-124478: Cleanup argparse documentation (GH-124877) (#125164)
pythonGH-124478: Cleanup argparse documentation (python#124877)