Skip to content

Conversation

@qingshi163
Copy link
Contributor

@qingshi163 qingshi163 commented Nov 26, 2023

@youknowone
Copy link
Member

@qingshi163 can sre-engine be used as an indepdendent crate out of RustPython? If not, how about putting it in this repository as rustpython-sre-engine?

@qingshi163
Copy link
Contributor Author

@qingshi163 can sre-engine be used as an indepdendent crate out of RustPython? If not, how about putting it in this repository as rustpython-sre-engine?

sure

@qingshi163 qingshi163 changed the title [WIP] Update Sre Engine Implementing to CPython 3.12 Update Sre Engine Implementing to CPython 3.12 Jan 3, 2024
@qingshi163 qingshi163 marked this pull request as ready for review January 3, 2024 15:36
@qingshi163 qingshi163 requested a review from youknowone January 3, 2024 15:37
vm/Cargo.toml Outdated
# sre-engine = "0.4.1"
# to work on sre-engine locally or git version
# sre-engine = { git = "https://github.com/RustPython/sre-engine", rev = "refs/pull/14/head" }
sre-engine = { git = "https://github.com/RustPython/sre-engine", rev = "refs/pull/17/head" }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am sorry to forget about this. update to recent release of sre-engine or import the source code here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move the repr to rustpython-sre-engine.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am going to import sre_engine in #5202

@youknowone
Copy link
Member

@qingshi163 other clippy errors looks mostly false positive or trivial. But could you check if clippy::never_loop one is intended or not?

@qingshi163
Copy link
Contributor Author

@qingshi163 other clippy errors looks mostly false positive or trivial. But could you check if clippy::never_loop one is intended or not?

The loop of valued break is needed for performance issue, we just need to ignore the warning

Copy link
Member

@youknowone youknowone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove unused code blocks or add a TODO note to share why they are left as commented.

@youknowone
Copy link
Member

Please revert the deletion once it is required

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