how to read a list from python in C?

Lialie lialie at 126.com
Fri May 19 13:19:01 EDT 2006


Thanks for your reply.
yes, I pass a list as an argument to the function in C.
The list has a random length.
Do you mean to do it in this way?
use PyTuple_Size(args), in a loop
use PyTuple_GetItem(args, i) 
or
use PyArg_VaParse?

Best Regards





More information about the Python-list mailing list