Title: gh-97959: [pydoc] now `help()` does not show extra notes for `classmethod`s by sobolevn · Pull Request #98120 · python/cpython · GitHub
Open Graph Title: gh-97959: [pydoc] now `help()` does not show extra notes for `classmethod`s by sobolevn · Pull Request #98120 · python/cpython
X Title: gh-97959: [pydoc] now `help()` does not show extra notes for `classmethod`s by sobolevn · Pull Request #98120 · python/cpython
Description: Demo: >>> class A: ... @classmethod ... def some(cls): ... pass ... >>> help(A) Before: Help on class A in module __main__: class A(builtins.object) | Class methods defined here: | | some() from builtins.type | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables (if defined) | | __weakref__ | list of weak references to the object (if defined) After: Help on class A in module __main__: class A(builtins.object) | Class methods defined here: | | some() | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables (if defined) | | __weakref__ | list of weak references to the object (if defined) Note that other use-cases for from note are still supported, I've added MethodType test case especially for that. Issue: gh-97959
Open Graph Description: Demo: >>> class A: ... @classmethod ... def some(cls): ... pass ... >>> help(A) Before: Help on class A in module __main__: class A(builtins.object) | Class method...
X Description: Demo: >>> class A: ... @classmethod ... def some(cls): ... pass ... >>> help(A) Before: Help on class A in module __main__: class A(builtins....
Opengraph URL: https://github.com/python/cpython/pull/98120
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:78bee51e-1674-d44b-d148-1aaf27b2ffd4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 94AA:2D523B:17AF25E:2038DBB:6A535D37 |
| html-safe-nonce | c7f8fd56fc94318c8c0e3c20e9fef94d3dcee735adfd692739645964c0c6d9c4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEFBOjJENTIzQjoxN0FGMjVFOjIwMzhEQkI6NkE1MzVEMzciLCJ2aXNpdG9yX2lkIjoiNzk1Mjk0MDY0NTQyNTA0NDc5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 573791581968c16b4e9a71cb033199de8e989c401298adced44ad5f61496203d |
| hovercard-subject-tag | pull_request:1081246236 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/98120/files |
| twitter:image | https://avatars.githubusercontent.com/u/4660275?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/4660275?s=400&v=4 |
| og:image:alt | Demo: >>> class A: ... @classmethod ... def some(cls): ... pass ... >>> help(A) Before: Help on class A in module __main__: class A(builtins.object) | Class method... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width