[issue10976] json.loads() raises TypeError on bytes object
Serhiy Storchaka
report at bugs.python.org
Fri Apr 27 17:28:07 CEST 2012
Serhiy Storchaka <storchaka at gmail.com> added the comment:
Related to this question is a question about errors. How to inform the user, if an error occurred in the decoding with detected encoding? Leave UnicodeDecodeError or convert it to ValueError? If there is a syntax error in JSON -- exception will refer to the position in the decoded string, we should to translate it to the position in the original binary string?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10976>
_______________________________________
More information about the Python-bugs-list
mailing list