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

Respect case of xsi:double infinity and NaN #338

Merged
merged 2 commits into from Feb 13, 2022

Commits on Feb 13, 2022

  1. Respect case of xsi:double infinity and NaN

    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.
    haxtibal committed Feb 13, 2022
    Configuration menu
    Copy the full SHA
    8ec5e37 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    480daf1 View commit details
    Browse the repository at this point in the history