Title: gh-106727: Make `inspect.getsource` smarter for class for same name definitions by gaogaotiantian · Pull Request #106815 · python/cpython · GitHub
Open Graph Title: gh-106727: Make `inspect.getsource` smarter for class for same name definitions by gaogaotiantian · Pull Request #106815 · python/cpython
X Title: gh-106727: Make `inspect.getsource` smarter for class for same name definitions by gaogaotiantian · Pull Request #106815 · python/cpython
Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
Open Graph Description: When there are multiple class definitions with the same class name found in a file, we currently just return the first one found. This is not the best solution. It would be pretty difficult(maybe n...
X Description: When there are multiple class definitions with the same class name found in a file, we currently just return the first one found. This is not the best solution. It would be pretty difficult(maybe n...
Opengraph URL: https://github.com/python/cpython/pull/106815
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/commits(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:c9e48e98-4596-d5a1-02e9-e0ee7e2aa680 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C25A:9FB70:15F619:1E427C:6A523A43 |
| html-safe-nonce | eeb0b03147e348b27a41fc148bbb881247f54e4b83dd38036a1405966012ea59 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjVBOjlGQjcwOjE1RjYxOToxRTQyN0M6NkE1MjNBNDMiLCJ2aXNpdG9yX2lkIjoiODM2NTYyMTM3OTc2NTI1NDcyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e89db75978235294f98a2aa9c5dfde3681f547ec7bdc56bb1a220e6f7ce27d2f |
| hovercard-subject-tag | pull_request:1436414352 |
| 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/106815/commits |
| twitter:image | https://opengraph.githubassets.com/d44ec0c91d6e0ea6a8149046d322d99bcb93ed1b888307e476e89800c98e0d61/python/cpython/pull/106815 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d44ec0c91d6e0ea6a8149046d322d99bcb93ed1b888307e476e89800c98e0d61/python/cpython/pull/106815 |
| og:image:alt | When there are multiple class definitions with the same class name found in a file, we currently just return the first one found. This is not the best solution. It would be pretty difficult(maybe n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gaogaotiantian |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-cache |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width