diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-06-15 18:21:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-15 18:21:13 (GMT) |
commit | 3a9f438c923f6835fab608de65e44281e3f71b79 (patch) | |
tree | 8d7dee61e888abafe487a39cf3aab8efca696f3a /Misc/NEWS.d | |
parent | 29bbd5f8e41217d53ac5eb5cd05f58477b5baa59 (diff) | |
download | cpython-3a9f438c923f6835fab608de65e44281e3f71b79.zip cpython-3a9f438c923f6835fab608de65e44281e3f71b79.tar.gz cpython-3a9f438c923f6835fab608de65e44281e3f71b79.tar.bz2 |
[3.13] gh-120541: Improve the "less" prompt in pydoc (GH-120543) (GH-120562)
When help() is called with non-string argument, use __qualname__ or
__name__ if available, otherwise use "{typename} object".
(cherry picked from commit 31d1d72d7e24e0427df70f7dd14b9baff28a4f89)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2024-06-15-12-04-46.gh-issue-120541.d3cc5y.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-06-15-12-04-46.gh-issue-120541.d3cc5y.rst b/Misc/NEWS.d/next/Library/2024-06-15-12-04-46.gh-issue-120541.d3cc5y.rst new file mode 100644 index 0000000..bf8830c --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-06-15-12-04-46.gh-issue-120541.d3cc5y.rst @@ -0,0 +1,2 @@ +Improve the prompt in the "less" pager when :func:`help` is called with +non-string argument. |