[docs] [issue10976] json.loads() throws TypeError on bytes object

Barry A. Warsaw report at bugs.python.org
Tue Oct 11 15:44:48 CEST 2011


Barry A. Warsaw <barry at python.org> added the comment:

I'll just mention that the elimination of bytes handling is a bit unfortunate, since this idiom which works in Python 2 no longer works:

fp = urlopen(url)
json_data = json.load(fp)

/me sad

----------
nosy: +barry

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10976>
_______________________________________


More information about the docs mailing list