469,285 Members | 2,588 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,285 developers. It's quick & easy.

Pyrex char *x[]

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
May 15 '07 #1
0 892

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Gary Stephenson | last post: by
4 posts views Thread by Marco Bubke | last post: by
10 posts views Thread by Kyler Laird | last post: by
reply views Thread by Victor Ng | last post: by
reply views Thread by Chris Lambacher | last post: by
1 post views Thread by borges2003xx | last post: by
27 posts views Thread by Julien Fiore | last post: by
11 posts views Thread by Jim Lewis | last post: by
3 posts views Thread by skip | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.