[Pyrex] How to handle C functions with variable number of args

Dog Walker thudfoo at gmail.com
Wed Nov 19 20:14:32 CET 2008


I read this somewhere in a Pyrex document (maybe) but cannot find it now.

In my .pyx file I have this declaration:

cdef extern int xosd_display(xosd * osd, int line, xosd_command
command, ...) except -1

I want to have a method in this class:

cdef class XOSD:
    cdef xosd *xosdWin
...

like this (but this doesn't work):

    def displaytext(self, line, command,  *arg):
         #and then call the xosd_display function declared above

Where is handling C varargs in Pyrex documented, btw?
-- 
I have seen the future and I'm not in it!



More information about the Pyrex mailing list