#include <Python.h>
static PyObject *func(PyObject *self, PyObject *args)
{
double array[3];
PyObject *py_list;
if (!PyArg_ParseTuple(args, "O", &py_list)){
return NULL;
}
int i;
for (i=0; i<3; i++){
array[i] = PyFloat_AsDouble(PySequence_GetItem(py_list,i));
}
}
I2luY2x1ZGUgPFB5dGhvbi5oPgoKc3RhdGljIFB5T2JqZWN0ICpmdW5jKFB5T2JqZWN0ICpzZWxmLCBQeU9iamVjdCAqYXJncykKewoJZG91YmxlIGFycmF5WzNdOwoJUHlPYmplY3QgKnB5X2xpc3Q7CgkKCWlmICghUHlBcmdfUGFyc2VUdXBsZShhcmdzLCAiTyIsICZweV9saXN0KSl7CgkJcmV0dXJuIE5VTEw7Cgl9CgkKCWludCBpOwoJZm9yIChpPTA7IGk8MzsgaSsrKXsKCQlhcnJheVtpXSA9IFB5RmxvYXRfQXNEb3VibGUoUHlTZXF1ZW5jZV9HZXRJdGVtKHB5X2xpc3QsaSkpOwoJfQp9