member array in c passed to python?

William Hanlon whanlon at cosmic.utah.edu
Mon Aug 4 20:34:16 CEST 2003


Hi,

I would like to use the Python C API to use python to access functions 
originally written in C. The objects that I would like to pass to python 
have multi-dimensional arrays.

How do I include arrays as object member? And how is it declared in the 
PyMemberDef array?

If you can not use C arrays, I thought perhaps then I should use Python 
tuples or lists, but I don't see how to fill the tuple from the 
multi-dimensional arrays. Does anyone have an example of this?

Thanks,
William Hanlon





More information about the Python-list mailing list