3

I am new to Python. I have written a C code extending Python to get certain values from another C module. The values are got as C Structures. I need to return C structure to Python. For this I think, copying C structure to Python list would be good.

I have a structure like:

struct cStruct{
 int a;
 char* b;
 struct c;
}cStruct_t;

How to return cStruct_t to Python???

Regards, solz

  • 1
    possible duplicate of [How can we pass a C structure to Python?](http://stackoverflow.com/questions/5734016/how-can-we-pass-a-c-structure-to-python) – nouney Apr 12 '14 at 22:04
  • 1
    @nouney: Not exactly. My problem is I have a C structre which I got from another C module. I need to return this C structure to Python. – user3527781 Apr 13 '14 at 14:48

0 Answers0