Title: Replace custom opcodes with CPython standard sequences by youknowone · Pull Request #6794 · RustPython/RustPython · GitHub
Open Graph Title: Replace custom opcodes with CPython standard sequences by youknowone · Pull Request #6794 · RustPython/RustPython
X Title: Replace custom opcodes with CPython standard sequences by youknowone · Pull Request #6794 · RustPython/RustPython
Description: Remove RustPython-specific opcodes (BuildListFromTuples, BuildMapForCall, BuildSetFromTuples, BuildTupleFromTuples) and replace their usage with CPython 3.14 standard opcode sequences: BuildListFromTuples → BUILD_LIST + LIST_EXTEND loop BuildSetFromTuples → BUILD_SET + SET_UPDATE loop BuildTupleFromTuples → BUILD_LIST + LIST_EXTEND + CALL_INTRINSIC_1(ListToTuple) BuildMapForCall → DICT_MERGE loop Implement missing opcodes: ListExtend: Extend list with iterable elements SetUpdate: Add iterable elements to set DictMerge: Merge dict with duplicate key checking Summary by CodeRabbit Refactor Star-unpacking and argument/collection assembly now use incremental streaming (per-element extend/update then final conversion), improving large/unpacked sequence handling. Adjusted bytecode instruction stack accounting for correct runtime behavior. Bug Fixes Keyword-argument merging now detects duplicate keys and invalid mappings, surfacing clearer errors. New Features Runtime supports explicit list-extend and set-update operations for expanded iterables. Chores Added spell-check dictionary entries for new token names. ✏️ Tip: You can customize this high-level summary in your review settings.
Open Graph Description: Remove RustPython-specific opcodes (BuildListFromTuples, BuildMapForCall, BuildSetFromTuples, BuildTupleFromTuples) and replace their usage with CPython 3.14 standard opcode sequences: BuildListFr...
X Description: Remove RustPython-specific opcodes (BuildListFromTuples, BuildMapForCall, BuildSetFromTuples, BuildTupleFromTuples) and replace their usage with CPython 3.14 standard opcode sequences: BuildListFr...
Opengraph URL: https://github.com/RustPython/RustPython/pull/6794
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6cd9cb42-be1b-3686-9660-207e9dbd8253 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9164:34684:36C1B85:48CF59A:6A5D26E7 |
| html-safe-nonce | fee8f0108f0cbcf369087a7a40b05e6abe9f675d29a696e3457002de3c4f7ba8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTY0OjM0Njg0OjM2QzFCODU6NDhDRjU5QTo2QTVEMjZFNyIsInZpc2l0b3JfaWQiOiIyNTEzNTcwNDUyODg4OTU0NTk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ae15d0596c8ccf64f415a299a17f31691f86bbd5c02987665030951a9ad909b9 |
| hovercard-subject-tag | pull_request:3185999014 |
| 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/6794/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 | Remove RustPython-specific opcodes (BuildListFromTuples, BuildMapForCall, BuildSetFromTuples, BuildTupleFromTuples) and replace their usage with CPython 3.14 standard opcode sequences: BuildListFr... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width