Title: bpo-42500: Fix recursion in or after except by markshannon · Pull Request #23568 · python/cpython · GitHub
Open Graph Title: bpo-42500: Fix recursion in or after except by markshannon · Pull Request #23568 · python/cpython
X Title: bpo-42500: Fix recursion in or after except by markshannon · Pull Request #23568 · python/cpython
Description: Currently we try to track whether we are handling an exception, and adapt behavior accordingly. This is fragile, and may cause the C stack to overflow, even if the Python stack does not. Instead, this PR allows some headroom for exception formatting and initialization code. This means we can create exceptions and handle RecursionErrors more reliably. This is still an imperfect solution, as we really should distinguish between recursion errors (the Python stack is too deep) and stack overflow errors (the C stack is near exhaustion). https://bugs.python.org/issue42500
Open Graph Description: Currently we try to track whether we are handling an exception, and adapt behavior accordingly. This is fragile, and may cause the C stack to overflow, even if the Python stack does not. Instead, t...
X Description: Currently we try to track whether we are handling an exception, and adapt behavior accordingly. This is fragile, and may cause the C stack to overflow, even if the Python stack does not. Instead, t...
Opengraph URL: https://github.com/python/cpython/pull/23568
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:1c21eca0-1519-42ec-22ca-c961849b709b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9756:2BEEF:1501F21:1C91E8A:6A5467DE |
| html-safe-nonce | d2b4cbe70be3c50b740b53426a8c33662efdf1122485b2a6fc38f1e7b8eb2ada |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzU2OjJCRUVGOjE1MDFGMjE6MUM5MUU4QTo2QTU0NjdERSIsInZpc2l0b3JfaWQiOiI2OTIzNDM3NzEwNDIzMzg2MDc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9030c56474d7de3e77f0b12d7b70561e6fa73d8cb5db92145bab2b92acba16af |
| hovercard-subject-tag | pull_request:529594579 |
| 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/23568/files |
| twitter:image | https://avatars.githubusercontent.com/u/9448417?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/9448417?s=400&v=4 |
| og:image:alt | Currently we try to track whether we are handling an exception, and adapt behavior accordingly. This is fragile, and may cause the C stack to overflow, even if the Python stack does not. Instead, t... |
| 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 | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width