[Python-Dev] Convert from unsigned long long to PyLong

MRAB python at mrabarnett.plus.com
Sat Jul 23 11:58:35 EDT 2016

On 2016-07-23 05:23, Tian JiaLin wrote:
> Hey Guys,
> I found the mistake I made, basically I'm using a tool called Sentry to
> capture the exceptions.
> The value returned from the Python is 2^64-1, which is -1
> from mysql_affected_rows.
> Sentry is using JSON format as the a kind of storage, apparently the MAX
> <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number> is
> 2^53 -1.
JSON itself doesn't put a limit on the size of integers.

That link is about how JavaScript handles JSON.

More information about the Python-Dev mailing list