64 bit offsets?

MRAB python at mrabarnett.plus.com
Thu Oct 7 23:20:21 CEST 2010

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.

I don't have a 64-bit system, but I'll see if I can build a 64-bit
version of the regex module (http://pypi.python.org/pypi/regex).

> -----
> "It's quite difficult to remind people that all this stuff was here for
> a million years before people. So the idea that we are required to
> manage it is ridiculous. What we are having to manage is us." ...Bill
> Ballantine, marine biologist.
>> On 2010-10-07 8:42 AM, "MRAB" <python at mrabarnett.plus.com
>> <mailto:python at mrabarnett.plus.com>> wrote:
>> On 06/10/2010 22:41, jay thompson wrote:
>> >
>> > Hello everyone,
>> >
>> > I'm trying to extract some data fro...
>> I would've thought that a 64-bit version of Python would have 64-bit
>> offsets. Is that not the case?
>> --
>> http://mail.python.org/mailman/listinfo/python-list

More information about the Python-list mailing list