[Numpy-discussion] PyArray_DescrConverter segfault

Igor Sylvester igorsyl at gmail.com
Thu Jan 1 14:09:30 EST 2009


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://mail.python.org/pipermail/numpy-discussion/attachments/20090101/240bda46/attachment.html>


More information about the NumPy-Discussion mailing list