On 14/09/2020 17:36, Christopher Barker wrote:
There seems to be a fair bit of support for this idea.
Will it need a PEP ?
-CHB
If I've understood correctly (far from certain) the existing json.dumps
and json.loads functions are permissive (allow some constructions that
are not part of the JSON spec) but the proposed new functions will be
strict.
To minimise possible confusion, I think that the documentation (both the
docstrings and the online docs) should be **very clear** about this.
E.g.
loads:
...
loads accepts blah-blah-blah. This is different from loadf which
only accepts strict JSON.
loadf:
...
loadf only accepts strict JSON. This is different from loads which
blah-blah-blah
Etc.
Rob Cliffe
_______________________________________________
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/ABQKK6GSK33I2XBJK4VK4RUEUAQ3HDVV/
Code of Conduct: http://python.org/psf/codeofconduct/