Title: gh-137477: Extend regex pattern check in `inspect.findsource` by George-Ogden · Pull Request #137479 · python/cpython · GitHub
Open Graph Title: gh-137477: Extend regex pattern check in `inspect.findsource` by George-Ogden · Pull Request #137479 · python/cpython
X Title: gh-137477: Extend regex pattern check in `inspect.findsource` by George-Ogden · Pull Request #137479 · python/cpython
Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
Open Graph Description: This reintroduces the regex removed in #117025 with an additional case for classes. While this is still a more hacky solution than AST parsing, etc, it handles class definitions and edge cases wher...
X Description: This reintroduces the regex removed in #117025 with an additional case for classes. While this is still a more hacky solution than AST parsing, etc, it handles class definitions and edge cases wher...
Opengraph URL: https://github.com/python/cpython/pull/137479
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:f0c7c63c-72d7-4ae5-d94f-73e697e9b30e |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | DC64:83634:10F8B49:16B66C3:6B0658EC |
| html-safe-nonce | 6fba2269630cf87f0808d615d47d018310990e1b3edefeb7e6768dfdfafe4b3e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzY0OjgzNjM0OjEwRjhCNDk6MTZCNjZDMzo2QjA2NThFQyIsInZpc2l0b3JfaWQiOiI2NTQxMzM3NDk1NDI5NjAxNTE2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b8c3eed418d105e40f0ff0baae4c7c32e19657e12efc5e3d6c1f994ba16aaf2d |
| hovercard-subject-tag | pull_request:2725128367 |
| 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/137479/checks |
| twitter:image | https://opengraph.githubassets.com/5851743e56ef785cf30c312013c48ff45ca8f6c10143e6a6846b753fd13a6a22/python/cpython/pull/137479 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5851743e56ef785cf30c312013c48ff45ca8f6c10143e6a6846b753fd13a6a22/python/cpython/pull/137479 |
| og:image:alt | This reintroduces the regex removed in #117025 with an additional case for classes. While this is still a more hacky solution than AST parsing, etc, it handles class definitions and edge cases wher... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | George-Ogden |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6324e6ac990fb6befbec840cc0e102a1071c339bfe8f9826bb12de2e3ba1d297 |
| 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 | 7f0aa75f4141d440c6110dc31af7ea7797abb6c4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width