]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-120541: Improve the "less" prompt in pydoc (GH-120543)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 15 Jun 2024 17:56:40 +0000 (20:56 +0300)
committerGitHub <noreply@github.com>
Sat, 15 Jun 2024 17:56:40 +0000 (20:56 +0300)
commit31d1d72d7e24e0427df70f7dd14b9baff28a4f89
tree6c0df87892247f1318e188a31620e7ed07a461e9
parent9e0b11eb21930b7b8e4a396200a921e9985cfca4
gh-120541: Improve the "less" prompt in pydoc (GH-120543)

When help() is called with non-string argument, use __qualname__ or
__name__ if available, otherwise use "{typename} object".
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]