gh-108826: Document dis module CLI and rename _test function to main#108827
gh-108826: Document dis module CLI and rename _test function to main#108827hugovk merged 16 commits intopython:mainfrom chgnrdv:document-dis-cli
dis module CLI and rename _test function to main#108827Conversation
dis module has CLI, but it is not documented and declared as 'test program' in source code. This patch mentions CLI in documentation and renames the function where it is implemented.
dis module CLI and rename _test function to main
serhiy-storchaka
left a comment
There was a problem hiding this comment.
Is it the right place for that section? I used to see the "Command-line interface" section at the end of the file, only followed by examples and howtos. But there are documents which do not follow this "custom", so I no longer sure.
| @@ -0,0 +1 @@ | |||
| :mod:`dis` module command line interface is now mentioned in documentation. | |||
There was a problem hiding this comment.
I am not sure whether the Library section or the Documentation section are more suitable for this entry.
There was a problem hiding this comment.
Different docs mention CLI in different sections of file. I was looking at trace and pdb docs when making these changes.
dis module has a preamble with brief introduction to its functionality, and I found the place below it suitable for CLI overview.
Yes, "Documentation" section seems more suitable for news entry, even if I made changes in library code. I'll submit a new one.
hugovk
left a comment
There was a problem hiding this comment.
Thanks for this, a couple of little suggestions :)
Misc/NEWS.d/next/Documentation/2023-09-03-13-43-49.gh-issue-108826.KG7abS.rst
Outdated
Show resolved
Hide resolved
…8826.KG7abS.rst Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
|
Please could you also update the anchor in https://docs.python.org/3.13/library/cmdline.html to link to the new CLI section of the |
|
#110249 added |
|
Well spotted, thanks for adding it! We'll have to make sure we don't include it in backports to 3.11 and 3.12. But we'll need a manual backport anyway, because we don't yet have |
|
Sorry, @chgnrdv and @hugovk, I could not cleanly backport this to |
…n to `main` (python#108827) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 0d805b9)
|
GH-110681 is a backport of this pull request to the 3.12 branch. |
|
Sorry, @chgnrdv and @hugovk, I could not cleanly backport this to |
…n to `main` (python#108827) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 0d805b9)
|
GH-110689 is a backport of this pull request to the 3.11 branch. |
|
@hugovk, thanks for review and backport! |
|
Thanks for the PR! |
…n to `main` (python#108827) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Fixes #108826.
dismodule has CLI, but it is not documented and declared as 'test program' in source code. This patch mentions CLI in documentation and renames the function where it is implemented.📚 Documentation preview 📚: https://cpython-previews--108827.org.readthedocs.build/
discommand line interface exists, but not documented #108826