Newtype `LoadSuperAttr` oparg by ShaharNaveh · Pull Request #7002 · RustPython/RustPython
Repository navigation
Newtype LoadSuperAttr oparg - #7002
Merged
youknowone merged 1 commit into RustPython:main from ShaharNaveh:oparg-newtype-loadsuperattr Feb 5, 2026
Merged
Newtype LoadSuperAttr oparg #7002
youknowone merged 1 commit into
RustPython:main from
ShaharNaveh:oparg-newtype-loadsuperattr
Conversation
ShaharNaveh
commented
Feb 5, 2026
·
edited by coderabbitai
Bot
Loading
Copy link Copy Markdown
Contributor
If this will be merged I'll do the same for LoadAttr opcode
Summary by CodeRabbit
- Refactor
- Refactored super attribute loading mechanism to use a structured builder-based approach instead of low-level encoding calls.
- Enhanced bytecode argument handling with improved type safety for super attribute operations.
- Reorganized public API exports to support the new structured argument type handling.
Newtype LoadSuperAttr oparg
778776d
coderabbitai
Bot
commented
Feb 5, 2026
·
edited
Loading
Copy link Copy Markdown
Contributor
📝 Walkthrough
WalkthroughThe changes refactor super-attribute loading instruction handling by replacing low-level u32 encoding/decoding with a typed LoadSuperAttr struct using a builder pattern. This spans compiler codegen, bytecode definitions, and VM execution, removing old encode/decode helper functions and introducing a strongly-typed oparg representation. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Suggested reviewers
Poem🚥 Pre-merge checks | ✅ 3 ✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit ! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. ❤️ ShareComment |
View reviewed changes
youknowone left a comment
Copy link Copy Markdown
Member
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more .
👍
youknowone merged commit5b7db1d
into
RustPython : main
Feb 5, 2026
youknowone
pushed a commit
that referenced
this pull request
Sep 16, 2026
Newtype LoadSuperAttr oparg (#7002)
57496bb
Sign up for free
to join this conversation on GitHub .
Already have an account?
Sign in to comment