cdef extern from "Python.h":
object PyString_FromStringAndSize(char *, int)cdef char buf[42]
my_string = PyString_FromStringAndSize(buf, 42)
cdef extern from "Numeric/arrayobject.h":Remember to include a call to import_array in the body of your module before using anything from the Numeric module:struct PyArray_Descr:
int type_num, elsize
char typectypedef class PyArrayObject [type PyArray_Type]:
cdef char *data
cdef int nd
cdef int *dimensions, *strides
cdef object base
cdef PyArray_Descr *descr
cdef int flagsvoid import_array()
import_array()