]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-97959: Fix rendering of routines in pydoc (GH-113941)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 11 Feb 2024 13:19:44 +0000 (15:19 +0200)
committerGitHub <noreply@github.com>
Sun, 11 Feb 2024 13:19:44 +0000 (15:19 +0200)
commit2939ad02be62110ffa2ac6c4d9211c85e1d1720f
treeea81ce4398d6401329b434ac36acf34c6ed60bcb
parentb1043607884d774acabd255ecdcebb159f76a2fb
gh-97959: Fix rendering of routines in pydoc (GH-113941)

* 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.
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]