Title: bpo-46458: emit code for else of a try block immediately after the try body by iritkatriel · Pull Request #30751 · python/cpython · GitHub
Open Graph Title: bpo-46458: emit code for else of a try block immediately after the try body by iritkatriel · Pull Request #30751 · python/cpython
X Title: bpo-46458: emit code for else of a try block immediately after the try body by iritkatriel · Pull Request #30751 · python/cpython
Description: This change makes us emit the code for an else of a try immediately after the try body so it avoids the jump to the else block. It adds a jump from the end of the else block to after the except blocks, so we are net neutral in terms of jumps. However, since there is only one exit from the try-except-else part, the finally block doesn't get inlined so we gain a bit in terms of code size (but we still have the same number of jumps). https://bugs.python.org/issue46458
Open Graph Description: This change makes us emit the code for an else of a try immediately after the try body so it avoids the jump to the else block. It adds a jump from the end of the else block to after the except b...
X Description: This change makes us emit the code for an else of a try immediately after the try body so it avoids the jump to the else block. It adds a jump from the end of the else block to after the except b...
Opengraph URL: https://github.com/python/cpython/pull/30751
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:33cddc74-0579-df96-7dd3-dbcfe8ba8f7f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DEDC:3B16A6:49F63C4:6827FB4:6A4F82D7 |
| html-safe-nonce | d6e9fc5c446cb737e02831601c97b6fedf6b33be1a14257ea65e5f41bdd98644 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERURDOjNCMTZBNjo0OUY2M0M0OjY4MjdGQjQ6NkE0RjgyRDciLCJ2aXNpdG9yX2lkIjoiMzg2MTIxNTc2NzQyMTc0NzkyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8d9f6fc23fa4c7e56404e5a2dae4929f805bdd4c94b409a494947e1b3c9b75fc |
| hovercard-subject-tag | pull_request:828658274 |
| 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/30751/files |
| twitter:image | https://avatars.githubusercontent.com/u/1055913?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1055913?s=400&v=4 |
| og:image:alt | This change makes us emit the code for an else of a try immediately after the try body so it avoids the jump to the else block. It adds a jump from the end of the else block to after the except b... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width