Skip to content

[3.12] gh-97959: Fix rendering of routines in pydoc (GH-113941) #115296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Feb 11, 2024

  • 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 2939ad0)

…13941)

* 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 2939ad0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@miss-islington-app
Copy link

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.11 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker cfb79caaab6c4823b6b186aabab642c4dab3927f 3.11

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Feb 11, 2024
…honGH-113941) (pythonGH-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 2939ad0)
(cherry picked from commit cfb79ca)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Feb 11, 2024

GH-115302 is a backport of this pull request to the 3.11 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.11 only security fixes label Feb 11, 2024
@serhiy-storchaka serhiy-storchaka removed their assignment Feb 11, 2024
serhiy-storchaka added a commit that referenced this pull request Feb 11, 2024
GH-115296) (GH-115302)

* 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 2939ad0)
(cherry picked from commit cfb79ca)
@serhiy-storchaka serhiy-storchaka deleted the backport-2939ad0-3.12 branch February 19, 2024 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant