Eric V. Smith added the comment:

What are the use cases where json.loads would be called on the return from 
json.loads?

It seems to me a better design would be to wrap such calls with a test, instead 
of having json.loads do this test. Hiding it in json.loads would mask other 
programming errors, for instance if you pass an unrelated dict to json.loads.

----------
nosy: +eric.smith
versions:  -Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5

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

Reply via email to