[PyPy-issue] [issue628] json.loads("{}") returns []

Alex Gaynor pypy-dev-issue at codespeak.net
Fri Jan 28 02:18:51 CET 2011


Alex Gaynor <alex.gaynor at gmail.com> added the comment:

Huh, looks like I've got this in 2.7 as well:

alex at alex-laptop:~$ python2.7 
Python 2.7.0+ (r27:82500, Sep 15 2010, 18:04:55) 
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.modules['_json'] = None
>>> import json
>>> json.loads("{}")
[]
>>> sys.version
'2.7.0+ (r27:82500, Sep 15 2010, 18:04:55) \n[GCC 4.4.5]'

_______________________________________________________
PyPy development tracker <pypy-dev-issue at codespeak.net>
<https://codespeak.net/issue/pypy-dev/issue628>
_______________________________________________________



More information about the Pypy-issue mailing list