Christian wrote:
> I have the following use case with OpenGL:
> 
> My colours are stored in 4-element tuples and should be passed to a 
> OpenGL function by function unpacking
> 
> color = (0, 0, 0, 1)
> glColor4f(*color)
> 
> But this doesn't work with Cython. I get the following error:
> 
> 
> Error converting Pyrex file to C:
> ------------------------------------------------------------
> ...
> 
> def set_color():
>    color = (0, 0, 0, 1)
>    glColor4f(*color)
>            ^
> ------------------------------------------------------------
> 
> gltest.pyx:16:13: Keyword arguments not allowed in cdef functions.

I created a ticket for supporting this:

http://trac.cython.org/cython_trac/ticket/408

Stefan

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to