Ezio Melotti added the comment: I opened a new issue about improving the error message: #19307. After further discussion on IRC, we think that both #19307 and this issue should only be applied on 3.4 (the attached patch produces an even more misleading error that would require backporting #19307).
---------- dependencies: +Improve TypeError message in json.loads() versions: +Python 3.4 -Python 2.7 Added file: http://bugs.python.org/file32239/issue18958-3.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18958> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com