Stephen J. Turnbull wrote:
Richard Musil writes:

 > After some thinking it seems that the float is only case where this
 > "loss of a precision" happen.

This is true of Unicode normalized forms as well as floats.

But it's true in Python, where you have the option to not normalise
your deserialised JSON strings. What's missing is the ability to
deserialise JSON floats to a non-lossy type.

This seems like a reasonable thing to want, even if you're not
intending to round-trip anything.

--
Greg
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/YYIEDO6YI75XJPGLVC2XBHYWAWTFJWQH/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to