]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-120541: Improve the "less" prompt in pydoc (GH-120543) (GH-120562)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 15 Jun 2024 18:21:13 +0000 (20:21 +0200)
committerGitHub <noreply@github.com>
Sat, 15 Jun 2024 18:21:13 +0000 (18:21 +0000)
commit3a9f438c923f6835fab608de65e44281e3f71b79
tree8d7dee61e888abafe487a39cf3aab8efca696f3a
parent29bbd5f8e41217d53ac5eb5cd05f58477b5baa59
[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>
Lib/pydoc.py
Lib/test/test_pydoc/test_pydoc.py
Misc/NEWS.d/next/Library/2024-06-15-12-04-46.gh-issue-120541.d3cc5y.rst [new file with mode: 0644]