FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Match statements rewrite by arihant2math · Pull Request #5628 · RustPython/RustPython · GitHub

Match statements rewrite - #5628

Merged
youknowone merged 5 commits into
RustPython:mainfrom
arihant2math:match
Apr 10, 2025
Merged

Match statements rewrite#5628
youknowone merged 5 commits into
RustPython:mainfrom
arihant2math:match

Conversation

arihant2math commented Mar 26, 2025
edited
Loading

Copy link
Copy Markdown
Contributor

Retains all match statement functionality, but rewrites all the match statement code to reduce bugs and mirror cpython. Also, it adds support for the rest of the patterns (hopefully).

Also this re-enables the codegen tests that the ruff port disabled.

Fixes: #5628 and #5491

arihant2math marked this pull request as ready for review March 30, 2025 20:09

Copy link
Copy Markdown
Contributor Author

Note that class and sequence matching is broken, but this is still a significant improvement over the current implementation.

arihant2math changed the title Match statements redo Match statements rewrite Mar 30, 2025

youknowone left a comment
edited
Loading

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks great in general.

@coolreader18 Could you review this PR?

Comment thread vm/src/frame.rs

Copy link
Copy Markdown
Member

@coolreader18 do you have time to review?

youknowone merged commit 8dc1718 into RustPython:main Apr 10, 2025

Copy link
Copy Markdown
Member

@coolreader18 I wish you could comment just will do or not do

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL