]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-97959: Fix rendering of routines in pydoc (GH-113941) (GH-115296)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 11 Feb 2024 13:56:34 +0000 (15:56 +0200)
committerGitHub <noreply@github.com>
Sun, 11 Feb 2024 13:56:34 +0000 (13:56 +0000)
commitcfb79caaab6c4823b6b186aabab642c4dab3927f
tree989569e0577b0adf1fd9f94805246728284432c6
parentd8346d6c0677b0e8fcff5aa6b179d3c3afca48c6
[3.12] gh-97959: Fix rendering of routines in pydoc (GH-113941) (GH-115296)

* Class methods no longer have "method of builtins.type instance" note.
* Corresponding notes are now added for class and unbound methods.
* Method and function aliases now have references to the module or the
  class where the origin was defined if it differs from the current.
* Bound methods are now listed in the static methods section.
* Methods of builtin classes are now supported as well as methods of
  Python classes.
(cherry picked from commit 2939ad02be62110ffa2ac6c4d9211c85e1d1720f)
Lib/pydoc.py
Lib/test/pydocfodder.py
Lib/test/test_enum.py
Lib/test/test_pydoc.py
Misc/NEWS.d/next/Library/2024-01-11-15-10-53.gh-issue-97959.UOj6d4.rst [new file with mode: 0644]