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
bpo-39278: add docstrings to functions in pdb module #17924
Conversation
Thanks for the PR @carlbordum. IMO, it's always helpful to keep the docstrings up to date with the documentation.
I've verified that the changes match the documentation at https://docs.python.org/3/library/pdb.html. The only thing that's missing is a few formatting conversions, particularly the words that should be italics. In docstrings, we typically surround parameter names with asterisks (only for the first occurrence in each docstring though). I'll include the missing ones in suggestions below.
The only other thing you could consider including would be a docstring for the Pdb
class (https://docs.python.org/3/library/pdb.html#pdb.Pdb). But, the PR is still quite helpful in it's current state, so I think it could be merged with or without that addition once the asterisks are added.
@vstinner Based on the build logs at https://github.com/python/cpython/pull/17924/checks?check_run_id=382949957 and https://travis-ci.org/python/cpython/jobs/635143388?utm_medium=notification&utm_source=github_status, the failures look to be unrelated to the PR. I suspect the "Install Dependencies" failure would likely be resolved if we re-triggered the CI checks, but the doc build failure in "library/nntplib.rst" might be a bit more involved:
Can we retrigger the tests here or would you suggest opening a bug report (if there's not one already)? |
I restarted the job. See https://bugs.python.org/issue39343 |
All these functions were already documented, but not in docstrings which means you could not call help() on the functions before this patch.
It's been a while, huh I've rebased the commit and the tests now all pass. |
Better later than never. Thanks! |
All these functions were already documented, but not in docstrings which
means you could not call help() on the functions before this patch.
https://bugs.python.org/issue39278