Pyrex char *x[]

G

Georg Grabler

Hello everybody.

I finally decided to use pyrex for my tasks wrapping and creating new python
objects.

Anyway, i ran into struggles.
I want an array to be passed to a function, so basically i started the
function as follows:

def addToList (self, char *array[]):
....

This throws an error compiling:
"Cannot convert Python object argument to type 'char(*(*))'"

So, what i want:
Basically, it's a function called by python. This function shall step trough
the elements of the array, and call another function:
def addList(self, char *str):
...

Calling the addList function directly works properly, the function extends a
C list for the object. Now i want a function adding the whole array to a
the list, using the 2nd function.

Does anyone of you have an idea how to archive this?

Thank you,
Georg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top