Title: SetFunctionAttribute by youknowone · Pull Request #5968 · RustPython/RustPython · GitHub
Open Graph Title: SetFunctionAttribute by youknowone · Pull Request #5968 · RustPython/RustPython
X Title: SetFunctionAttribute by youknowone · Pull Request #5968 · RustPython/RustPython
Description: Summary by CodeRabbit New Features Introduced a new bytecode instruction for setting function attributes, enabling more granular and explicit function object creation. Added support for setting function attributes such as defaults, keyword-only defaults, annotations, closures, and type parameters at runtime. Refactor Updated function and closure creation to align with new bytecode semantics, separating attribute setting from function instantiation. Simplified function object construction by consolidating parameters and initializing attributes post-creation. Improved symbol scope resolution and handling for function arguments and closures. Streamlined bytecode instruction handling for function creation and attribute setting to match CPython 3.13 behavior. Simplified virtual machine execution logic for function creation and attribute assignment. Reduced verbosity in function object creation calls by internalizing attribute defaults. Refined internal APIs for safer and more direct access to object payloads. Bug Fixes Enhanced compatibility with updated function creation and attribute management, reducing potential errors in function handling.
Open Graph Description: Summary by CodeRabbit New Features Introduced a new bytecode instruction for setting function attributes, enabling more granular and explicit function object creation. Added support for setting ...
X Description: Summary by CodeRabbit New Features Introduced a new bytecode instruction for setting function attributes, enabling more granular and explicit function object creation. Added support for setting ...
Opengraph URL: https://github.com/RustPython/RustPython/pull/5968
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:49a6cde4-4201-8f63-d440-ec7ec2e42219 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EB1E:192303:83227:AA89B:696AF98F |
| html-safe-nonce | b4c05969f4796588661b705e37e0dbee05d9dfb9e183521f848ec5cd45e540b3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjFFOjE5MjMwMzo4MzIyNzpBQTg5Qjo2OTZBRjk4RiIsInZpc2l0b3JfaWQiOiIxMjM3NjU1NTAzMTE0MDA4OTc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 12aaae994a447d27fb62d145899336e89a9770db69c44b1c84eed714c62577f4 |
| hovercard-subject-tag | pull_request:2663677178 |
| 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/5968/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 Introduced a new bytecode instruction for setting function attributes, enabling more granular and explicit function object creation. Added support for setting ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width