Overview
Request 1005760 accepted
- update to 0.9.10:
* Updated the //README.md to be clear that parsing arbitrary JS
code may not work.
* Fixed serialization for objects that subclass `int` or `float`:
Previously we would use the objects __str__ implementation, but
that might result in an illegal JSON5 value if the object had
customized __str__ to return something illegal. Instead,
we follow the lead of the `JSON` module and call `int.__repr__`
or `float.__repr__` directly.
* While I was at it, I added tests for dumps(-inf) and dumps(nan)
when those were supposed to be disallowed by `allow_nan=False`.
- Created by dirkmueller
- In state accepted
Request History
dirkmueller created request
- update to 0.9.10:
* Updated the //README.md to be clear that parsing arbitrary JS
code may not work.
* Fixed serialization for objects that subclass `int` or `float`:
Previously we would use the objects __str__ implementation, but
that might result in an illegal JSON5 value if the object had
customized __str__ to return something illegal. Instead,
we follow the lead of the `JSON` module and call `int.__repr__`
or `float.__repr__` directly.
* While I was at it, I added tests for dumps(-inf) and dumps(nan)
when those were supposed to be disallowed by `allow_nan=False`.
factory-auto added opensuse-review-team as a reviewer
Please review sources
factory-auto accepted review
Check script succeeded
staging-bot added as a reviewer
Being evaluated by staging project "openSUSE:Factory:Staging:adi:34"
staging-bot accepted review
Picked "openSUSE:Factory:Staging:adi:34"
licensedigger accepted review
ok
dimstar accepted review
dimstar_suse accepted review
Staging Project openSUSE:Factory:Staging:adi:34 got accepted.
dimstar_suse approved review
Staging Project openSUSE:Factory:Staging:adi:34 got accepted.
dimstar_suse accepted request
Staging Project openSUSE:Factory:Staging:adi:34 got accepted.