Repository navigation
v0.18.0
Pre-release
Pre-release
Adopts omnist-spec v0.36.0-beta (vendor/omnist-spec moves from v0.35.0-beta;
the suite grows from 731 to 793 vectors, 28 OSD-OML vectors skipped, nothing
else). One behaviour change a caller can observe.
- Breaking: JSON text with a bare
NaN,Infinityor-Infinitytoken is
parse.codec-syntax(C-19, DIV-45). CPython'sjsonmodule reads the three
tokens as non-finite floats, soread_json('{"a": NaN}')used to succeed.
JSON has no such token. YAML (.nan,.inf), TOML and OML (nan,inf)
still spell them, and a number literal beyond binary64 (1e999) still reads
as an infinity (D-29). The error path is1:1: the decoder does not report
where the token is. Migration: write the value as a string, or as a
literal in a format that spells it. - Runner: two NaN leaves compare equal (E-33, DIV-47).
tools/conformance
compared the parsed Document with the library's equality, in which a NaN is
not equal to itself, so the threenan-is-a-numbervectors failed whatever
the reader returned. The referee now walks the two nodes and treats two NaNs
as equal; the library equality is untouched. - Checked and clean: XML pretyping (C-18, D-28, D-29). The
integerand
numberforms already follow C-18, anintegerover 4300 digits is
document.limit.int-digitsat the leaf, and anumberreads past binary64 as
an infinity. The grammar check runs before any big-integer or float parse, so
1 to 8 MB leaves of99...9x,-99...9x,99...9.and99...9eare
refused in linear time (8 MB: 0.3 s for anintegerleaf, 1.2 s for a
numberleaf). Pinned bytests/test_spec_v036.py. - Vectors. Track 1 (fixtures) 19 of 19; Track 2 (vector suite) 759 passed
and 6 failed before the fix, 765 passed and 28 skipped after.