Issue 13774: json.loads raises a SystemError for invalid encoding on 2.7.2 (original) (raw)
import json json.loads("{}", [1, 2, 3]) Traceback (most recent call last): File "", line 1, in File "/usr/local/Cellar/python/2.7.2/lib/python2.7/json/init.py", line 339, in loads return cls(encoding=encoding, **kw).decode(s) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/json/decoder.py", line 359, in init self.scan_once = scanner.make_scanner(self) SystemError: NULL result without error in PyObject_Call
Python 3.2 and 2.6 are not affected it'd seem, so it looks to be 2.7 only.