In C extension .pyd, sizeof INT64 = 4?

"Martin v. Löwis" martin at
Wed Jun 13 05:55:34 CEST 2007

> I used INT64 and initialize its value from PyArg_ParseTuple.
> The code is PyArg_ParseTuple(args, "l", &nValue).
> It should be PyArg_ParseTuple(args, "L", &nValue).

That's still incorrect. For the L format flag, use PY_LONG_LONG,
not your own INT64 type. More generally: always use the type
documented in


More information about the Python-list mailing list