64 bit offsets?

Martin v. Loewis martin at v.loewis.de
Sat Oct 23 14:34:23 EDT 2010


Am 07.10.2010 23:20, schrieb MRAB:
> On 07/10/2010 20:12, jay thompson wrote:
>> I'm not sure if it is limited to 32 bit addresses or if it's only
>> re.start() that is limited to 'em.
>>
>> jt
>>
> From what I can tell, Microsoft compilers (I'm assuming you're using
> Windows) have a 32-bit 'int' type for both 32-bit and 64-bit builds,
> and the re module uses Py_BuildValue("i", ...), which according to the
> docs uses the C 'int' type, so yes, it's 32 bits even in 64-bit Python.
> :-(

It would be easy enough to change this to PyInt_FromSsize_t.

Regards,
Martin



More information about the Python-list mailing list