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

notation3.py: don't normalize float representation #3020

Open
wants to merge 2 commits into
base: 8.x
Choose a base branch
from

Conversation

tgbugs
Copy link
Contributor

@tgbugs tgbugs commented Jan 5, 2025

fix behavior of the n3 parser family to avoid normalizing raw float string representation which makes it impossible to roundtrip the exact original string representation of e.g. 1e10

@nicholascar
Copy link
Member

@tgbugs can you please just put in a test to show it working as opposed to failing previously?

made as a separate commit to illustrate the old broken behavior priro to
the fix in the next commit
fix behavior of the n3 parser family to avoid normalizing raw float
string representation which makes it impossible to roundtrip the exact
original string representation of e.g. 1e10
@tgbugs
Copy link
Contributor Author

tgbugs commented Jan 26, 2025

@nicholascar I added a test to illustrate the issue. If there is going to be another 7.x release it should probably be backported as well.

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