Title: Take a borrow in invoke_exception instead of an owned type by kangdora · Pull Request #8327 · RustPython/RustPython · GitHub
Open Graph Title: Take a borrow in invoke_exception instead of an owned type by kangdora · Pull Request #8327 · RustPython/RustPython
X Title: Take a borrow in invoke_exception instead of an owned type by kangdora · Pull Request #8327 · RustPython/RustPython
Description: Closes #8320
This PR follows our AI policy
Summary
VirtualMachine::invoke_exception took its class argument as an owned PyTypeRef, but it never takes ownership — it only borrows cls for PyType::call (which itself is defined as fn call(zelf: &Py
Open Graph Description: Closes #8320 This PR follows our AI policy Summary VirtualMachine::invoke_exception took its class argument as an owned PyTypeRef, but it never takes ownership — it only borrows cls for PyType::c...
X Description: Closes #8320 This PR follows our AI policy Summary VirtualMachine::invoke_exception took its class argument as an owned PyTypeRef, but it never takes ownership — it only borrows cls for PyType::c...
Opengraph URL: https://github.com/RustPython/RustPython/pull/8327
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:52da797d-7312-91a3-d9f4-2f1af60cc592 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C50E:DC86C:2F8CBC1:44CBECD:6A60EB04 |
| html-safe-nonce | a47fb726b7df362a90a7df06ddc6a64014d9382094b593316d4ddcd9c2b3a5f8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTBFOkRDODZDOjJGOENCQzE6NDRDQkVDRDo2QTYwRUIwNCIsInZpc2l0b3JfaWQiOiIzMjcwNDgyMTA4NjUwNDE2OTAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d2eef5728b6448b57ffdedd6cdbb14b3f471f236c4f75e5bc5d8feaf6f4721a1 |
| hovercard-subject-tag | pull_request:4087680027 |
| 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/RustPython/RustPython/pull/8327/files |
| twitter:image | https://avatars.githubusercontent.com/u/182498567?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/182498567?s=400&v=4 |
| og:image:alt | Closes #8320 This PR follows our AI policy Summary VirtualMachine::invoke_exception took its class argument as an owned PyTypeRef, but it never takes ownership — it only borrows cls for PyType::c... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3ba36a464b9464992131f4003292a219fc87f92404b0dbe3fd1ef07f11102d0f |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| 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 | 2cc5e4f897a27632dd600edfec4c737bea2f8338 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width