[Cython] Export conversion mechanism to external callers
Robert Bradshaw
robertwb at math.washington.edu
Wed Jun 11 21:32:10 CEST 2008
It sounds like what you're looking for is the "public" keyword.
See http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/version/
Doc/Manual/external.html#PublicDecls
On Jun 11, 2008, at 12:24 PM, raoul wrote:
> Hello,
>
> Cython is pretty new to me (and even python), and i want to do
> something not
> so simple.
>
> Here is the context:
> I have a standard c++ application using efl (enlightenment foundation
> libraries), and I want to extend my app with some python plugins.
> And these
> plugins needs to access some efl data to be able to draw on the
> same canvas
> than my main application.
>
> To achieve that goal, i'm using boost.python to embedd python, that
> part is
> working great.
> On the python side, there is already a python binding for efl
> (python-efl).
> These bindings are written using Cython. This is why i'm asking
> here...
>
> So, my python plugins will use python-efl to play with efl, but I
> need to pass
> some data to python plugins like canvas pointer, drawing
> objects, ... These
> data are Efl specific C struct.
> I read the pyx/pxi files from python-efl, and there are some
> conversion
> fonction in there, to be able to pass efl struct to python objects. My
> question is, if there a way to be able to reuse that part of code from
> python-efl in my c++ application, so that i can give my python
> plugins Efl
> struct, and these python modules could use them as python-efl objects?
>
> Someone on #edevelop told me that there is a way to export the needed
> functions to external callers, something like a keyword using Cython?
>
> Perhaps someone here could probably point me to a solution, or even
> give me
> another direction to look.
>
> Thanks in advance,
>
> --
> ------------------------
> Raoul Hecky
>
> _______________________________________________
> Cython-dev mailing list
> Cython-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/cython-dev
More information about the Cython-dev
mailing list