64-bit platform support
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
I realize this project is called pywin32.
Nevertheless, it seems the appropriate place to
suggest a port to 64-bit platforms, particularly the
x64 platform, as it is very close to the 32-bit
equivalent.
I searched around and didn't find any discussion on
this topic.
I'm willing to assist with the effort.
Logged In: YES
user_id=771074
It will require a number of changes relating to the various
types of HANDLEs. Currently they're treated as longs
(which stay 4 bytes), but in win64 HANDLEs are 8 bytes.
However, it looks like there will be more changes for 64bit
python than for 64 bit windows. I count 1300-odd uses of
python API functions that will need to be converted to
Py_ssize_t. There are also a lot of places where s# is
used with PyArg_ParseTuple that will need to be converted.
Many of them place the length in a 32-bit value that's
passed directly to a Windows api function, so they'll need
an intermediate variable with a bounds checks.
The 2.6 release has a 64-bit version, and the project can
be built for Python 2.5 64-bit now. We should also have a
64-bit release for py3k eventually.