[pypy-issue] [issue1428] PyLong_FromUnicode seems to return int instead of long

George Sakkis tracker at bugs.pypy.org
Thu Mar 21 14:48:38 CET 2013


New submission from George Sakkis <george.sakkis at gmail.com>:

I am using jsonlib for parsing json and ran into a subtle difference between
cPython and PyPy:

    >>> import jsonlib
    >>> jsonlib.loads("[1]")
    [1L]

    >>>> import jsonlib
    >>>> jsonlib.loads("[1]")
    [1]

The related code calls PyLong_FromUnicode [1] so wondering why PyPy returns an
int instead.

[1]
http://bazaar.launchpad.net/~jmillikin/jsonlib/python3/view/head:/_jsonlib.c#L663

----------
messages: 5483
nosy: gsakkis, pypy-issue
priority: bug
status: unread
title: PyLong_FromUnicode seems to return int instead of long

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1428>
________________________________________


More information about the pypy-issue mailing list