[Pyrex] Python 2.5 exceptions

Ralf Schmitt schmir at gmail.com
Mon Sep 18 14:08:49 UTC 2006


On 9/18/06, Stefan Behnel <behnel_ml at gkec.informatik.tu-darmstadt.de> wrote:
>
>
> Look out for the Pyrex 2.5 patch or take a working version from here:
>
> http://codespeak.net/svn/lxml/pyrex/


I had to make a small change in order to compile c++ extensions with this
version:

=== pyrex-lxml/Pyrex/Compiler/Nodes.py
==================================================================
--- pyrex-lxml/Pyrex/Compiler/Nodes.py    (revision 25148)
+++ pyrex-lxml/Pyrex/Compiler/Nodes.py    (local)
@@ -3782,7 +3782,7 @@
                 /* Normalize to raise <class>, <instance> */
                 Py_DECREF(value);
                 value = type;
-                type = type->ob_type;
+                type = (PyObject*) type->ob_type;
                 Py_INCREF(type);
         }
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.copyleft.no/pipermail/pyrex/attachments/20060918/cbf1bbeb/attachment.html 


More information about the Pyrex mailing list