[Numpy-discussion] Fwd: PyArray_DescrConverter segfault
Igor Sylvester
igorsyl@gmail....
Thu Jan 1 13:21:20 CST 2009
I realize I need to call import_array() in the module initialization
module. Why isn't this equivalent to importing numpy before importing my
module?
---------- Forwarded message ----------
From: Igor Sylvester <igorsyl@gmail.com>
Date: Thu, Jan 1, 2009 at 1:09 PM
Subject: PyArray_DescrConverter segfault
To: Numpy-discussion@scipy.org
Hi,
Does anyone have an insight on the following problem?
PyObject* descr(PyObject* self, PyObject* args) {
PyObject *d;
PyArg_ParseTuple(args, "O&", PyArray_DescrConverter, &d);
return d;
}
>>> import numpy
>>> import mymodule
>>> numpy.__version__
'1.2.1'
>>> mymodule.descr([('a', 'i4'), ('b', 'i8')])
segmentation fault (core dumped) ipython
Thanks!
-Igor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20090101/348fcf37/attachment.html
More information about the Numpy-discussion
mailing list