Since Python 3.2 (still in alpha), the PyCObject API has been removed, the PyCapsule object is proposed as a replacement.
Swig wrapper code contains calls to PyCObject_FromVoidPtr, PyCObject_AsVoidPtr and PyCObject_Import, and won't compile anymore.
The attached patch fixes the issue and works at least for the wxPython interface, which is quite large and spans several modules sharing the same typesystem.
Of course the changes should be guarded by some lines like "#if PY_VERSION_HEX >= 0x03020000"
Log in to post a comment.