[Pyrex] Question

Riccardo Trocca rtrocca at libero.it
Wed Apr 16 12:47:59 CEST 2003


Hello, I'm learning PyRex and I'm trying to port some work already done with Swig to pyrex as an exercise.
The first problem I've found is:
in the .h I need to wrap I've a lot of #defines of values that must be passed to the C calls. I'd like to export thos values to the python module.
For example I've got #define RIMAGE_BGR24 0x8001.
I declared it in the import part of the pyx file because I need it inside the pyrex code.
Now what can I do in order to mymodule.RIMAGE_BGR24?


Riccardo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.copyleft.no/pipermail/pyrex/attachments/20030416/43209b4a/attachment.html


More information about the Pyrex mailing list