Title: bpo-35113: Fix inspect.getsource to return correct source for inner classes by tirkarthi · Pull Request #10307 · python/cpython · GitHub
Open Graph Title: bpo-35113: Fix inspect.getsource to return correct source for inner classes by tirkarthi · Pull Request #10307 · python/cpython
X Title: bpo-35113: Fix inspect.getsource to return correct source for inner classes by tirkarthi · Pull Request #10307 · python/cpython
Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
Open Graph Description: Previous approach used regex along with indentation of the match to return the source code. This caused below issues. This PR proposes usage of ast module to do correct parsing. Issues When a clas...
X Description: Previous approach used regex along with indentation of the match to return the source code. This caused below issues. This PR proposes usage of ast module to do correct parsing. Issues When a clas...
Opengraph URL: https://github.com/python/cpython/pull/10307
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:4c7283d6-27f0-d70b-f81a-80cfa1e4f741 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | EDAC:82FD0:AE7D619:B1F8D94:6A50C31B |
| html-safe-nonce | e88e6d2e75346aa2a00ad64c080d90be13c56ab636d2a58e8a87f5528007ee40 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREFDOjgyRkQwOkFFN0Q2MTk6QjFGOEQ5NDo2QTUwQzMxQiIsInZpc2l0b3JfaWQiOiI0NTYwMDQyMjIxMDQ3NDMxOTYzIiwicmVnaW9uX2VkZ2UiOiJzZWEiLCJyZWdpb25fcmVuZGVyIjoic2VhIn0= |
| visitor-hmac | d47ecca5738d17325b42808f5e8fac6df8abd7b9787e860fd261ba18beb5c6e9 |
| hovercard-subject-tag | pull_request:228113555 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/10307/checks |
| twitter:image | https://opengraph.githubassets.com/4b18de11cfeb2224794861aac3940ef5490d2633cf6d23f0cebb949c83b73c29/python/cpython/pull/10307 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4b18de11cfeb2224794861aac3940ef5490d2633cf6d23f0cebb949c83b73c29/python/cpython/pull/10307 |
| og:image:alt | Previous approach used regex along with indentation of the match to return the source code. This caused below issues. This PR proposes usage of ast module to do correct parsing. Issues When a clas... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tirkarthi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 72b13e0e8d0319acdd27a145cfe73f4f06c791713d0ac4690e41fb68ad28cac0 |
| 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 | 08e79d53fc070870d5b168356afebb1e286a2ffe |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width