[Cython] Creating python bindings for C library using Cython
Chris Colbert
sccolbert at gmail.com
Mon Jun 1 19:37:30 CEST 2009
python strings are automagically converted to char* by cython.
You can also look at a wrapper i'm building for the OpenCV library.
cython-opencv at google code.
Chris
On Mon, Jun 1, 2009 at 6:38 AM, Amit Sethi <amit.pureenergy at gmail.com>wrote:
>
> hi ,
> I guess this needs to go on cython-users but i did not see any such mailing
> list so I am posting it here ,
> I am trying to create python bindings for a library written in C ,
> But I am wondering as to how I am suppose to handle pointers.
>
> For example
>
> for the C function,
> int * analyse_row (int length, unsigned char *data),
>
>
> Now in this function call how am i supposed to handle *data , can i pass a
> string in place of *data ., Also please guide be to some projects that use
> Cython for binding with C
> --
> A-M-I-T S|S
>
> _______________________________________________
> Cython-dev mailing list
> Cython-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/cython-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/cython-dev/attachments/20090601/c2b57f99/attachment.htm
More information about the Cython-dev
mailing list