-
-
Notifications
You must be signed in to change notification settings - Fork 31k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-108826: Document dis
module CLI and rename _test
function to main
#108827
Conversation
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
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.📚 Documentation preview 📚: https://cpython-previews--108827.org.readthedocs.build/
dis
command line interface exists, but not documented #108826