Title: Fix PyCode constructor/replace by youknowone · Pull Request #6193 · RustPython/RustPython · GitHub
Open Graph Title: Fix PyCode constructor/replace by youknowone · Pull Request #6193 · RustPython/RustPython
X Title: Fix PyCode constructor/replace by youknowone · Pull Request #6193 · RustPython/RustPython
Description: Summary by CodeRabbit New Features Code objects can now be instantiated directly via a public constructor. Bytecode is validated and decoded when creating or replacing code objects, raising errors on invalid input. Improvements Stronger validation of local variables and symbol tables to ensure consistency. Function objects now serialize access to their code, improving safety when reading or updating code. Bug Fixes Replacing code now re-parses and validates bytecode to prevent inconsistent state.
Open Graph Description: Summary by CodeRabbit New Features Code objects can now be instantiated directly via a public constructor. Bytecode is validated and decoded when creating or replacing code objects, raising erro...
X Description: Summary by CodeRabbit New Features Code objects can now be instantiated directly via a public constructor. Bytecode is validated and decoded when creating or replacing code objects, raising erro...
Opengraph URL: https://github.com/RustPython/RustPython/pull/6193
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0ac0c90f-5baf-e6e9-e6a5-c8b25ed185b2 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DF70:296AF5:196A7BE:2302918:696AA521 |
| html-safe-nonce | 35f8b25e2fe09c57bae425b4a0f9ae08552d75a60863e6b0068a508de4d23ef9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjcwOjI5NkFGNToxOTZBN0JFOjIzMDI5MTg6Njk2QUE1MjEiLCJ2aXNpdG9yX2lkIjoiMTI3MzcwODM5MDYwNDUxNDU5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 005d1d8a592fb256df410466050fc4b7907689a653d512e2eb98b13a2cbb31f2 |
| hovercard-subject-tag | pull_request:2920651256 |
| 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/6193/files |
| twitter:image | https://avatars.githubusercontent.com/u/69878?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/69878?s=400&v=4 |
| og:image:alt | Summary by CodeRabbit New Features Code objects can now be instantiated directly via a public constructor. Bytecode is validated and decoded when creating or replacing code objects, raising erro... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a51f97dbb9326f71c08ecb61577457d543c602124d1a2672871258ef37ac5261 |
| 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 | 4bd0eac606c70914085176ef312ebdcd97a8cdf1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width