parsing a tuple in embedded python
- From: jenkins.justin@xxxxxxxxx
- Date: 30 Oct 2005 03:50:24 -0800
I am returning a tuple from my python method and am stuck trying to
figure out how to read it into a C array using PyArg_Parse.
My C Code:
int array[3];
PyArg_Parse(return, "(iii)", &array);
My Python Code:
mytuple = (1,2,3)
return mytuple
That gives me a segmentation fault. What am I doing wrong?
.
- Follow-Ups:
- Re: parsing a tuple in embedded python
- From: Fredrik Lundh
- Re: parsing a tuple in embedded python
- Prev by Date: Re: dreaming in Python
- Next by Date: Re: query a port
- Previous by thread: Problem with exe from py2exe
- Next by thread: Re: parsing a tuple in embedded python
- Index(es):