New issue 2812: json.loads fails on bytes
https://bitbucket.org/pypy/pypy/issues/2812/jsonloads-fails-on-bytes
Stefane Fermigier:
```
➜ cat jsontest.py
import json
print(json.loads("1"))
print(json.loads(b"1"))
➜ python jsontest.py
1
1
➜ python3 jsontest.py
1
1
➜ pypy jsontest.py
1
1
➜ pypy3 jsontest.py
1
Traceback (most recent call last):
File "jsontest.py", line 3, in <module>
print(json.loads(b"1"))
File "/usr/local/Cellar/pypy3/6.0.0/libexec/lib-python/3/json/__init__.py",
line 318, in loads
s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'
```
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue