passing large arrays from C to Python as arguments

Chris Fonnesbeck spam at fisher.forestry.uga.edu
Sat Jun 1 10:20:32 EDT 2002


I am looking for a way of passing relatively large arrays to python as
an argument to a method call, without hard-coding the length of the
array using Py_BuildValue. Is there an obvious solution to this, like
passing it in a dictionary, or something? At any rate, it is very
awkward to have to pass each element of each array into the argument
individually.

Thanks,
cjf



More information about the Python-list mailing list