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
Respect case of xsi:double infinity and NaN #338
Conversation
Thanks. Could you please add tests in |
f09e8fa
to
9fb37df
Compare
Added some tests. Not sure if they're complete enough or in the right place, would you have a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks good.
W3C specification for xsd:double says > The special values positive and negative infinity and > not-a-number have lexical representations INF, -INF and NaN, > respectively. Thus case matters. The previously used float.__repr__ would generate "inf", "-inf", "nan". Now we prepend special handling to get "INF", "-INF", "NaN" instead (which is still pytype compatible). Includes minor non-functional alignments of related bool to text code, and tests to assert its XML schema conformance as well.
e6eca3b
to
82efad3
Compare
82efad3
to
480daf1
Compare
Thanks for your review. Recent force push was merely to align author and committer email in my commit. They differed as a result of bad git project settings on my side. |
Thanks |
See lxml launchpad bug 1960715.
I'm not too experienced with Cython. Feel free to edit the commit.