Mark Dickinson added the comment:

Here's the relevant part of the JCS document, from Appendix A of 
https://cyberphone.github.io/openkeystore/resources/docs/jcs.html#ECMAScript_Compatibility_Mode:

"""
Numbers *must* be expressed as specified by EMCAScript [ES6] using the improved 
serialization algorithm featured in Google's V8 JavaScript engine [V8]. That 
is, in the ECMAScript compatibility mode there are no requirements saving the 
textual value of numbers. This also means that the JCS Sample Signature in 
incompatible with the ECMAScript mode since it uses unnormalized numbers.
"""

I think exactly matching Google's implementation is an unreasonable 
requirement, and I don't see any evidence that JCS usage is widespread enough 
to warrant making changes to the JSON float output format.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26229>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to