Skip to content

underscore issue on parse_str - #3194

Closed
eunsung-lim wants to merge 2 commits into
RustPython:mainfrom
eunsung-lim:211002
Closed

eunsung-lim wants to merge 2 commits into
RustPython:mainfrom
eunsung-lim:211002

Conversation

@eunsung-lim

Copy link
Copy Markdown

When parssing string to float, strings with underscores need to raise error
ex. "1_e1"

@youknowone 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.

By this change, you turned a few tests to pass. Removing unittest.expectedFailure from those tests will make your PR pass tests

@youknowone

Copy link
Copy Markdown
Member

could you run fmt and push it again? cargo fmt --all will work

@youknowone

Copy link
Copy Markdown
Member

@eunsung-lim will you going to finish this PR? let me know if you don't want anymore.

@DimitrisJim

Copy link
Copy Markdown
Member

Thanks, not quite sure unfortunately when, but this currently behaves as expected (code currently resides in the Parser repository). Thanks for the PR though!

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.

3 participants