Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a function for underline handling in literal/src/float.rs . #122

Merged
merged 4 commits into from
Jul 23, 2024

Conversation

dannasman
Copy link
Contributor

Hi!

This PR is related to PR #5356 in the RustPython repo. While investigating the NumberFormatBuilder I noticed that even though the flag fraction_consecutive_digit_separator is set to false the parser processed the bytes as if it was set to true. This observation was also made in issue #96 in the rust-lexical repo.

Comment on lines +59 to +61
// Use custom function for underline handling for now.
// For further information see https://github.com/Alexhuszagh/rust-lexical/issues/96.
let stripped = strip_underlines(literal)?;
Copy link
Member

Choose a reason for hiding this comment

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

👍

@youknowone youknowone merged commit 00d2f1d into RustPython:main Jul 23, 2024
2 of 3 checks passed
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