[Numpy-discussion] minor threads-related issue in numpy-release 1.6.2 and numpy-dev

Aron Ahmadia aron@ahmadia....
Tue Aug 14 09:27:09 CDT 2012


> Some parts of the numpy code release the GIL, so it needs to be reacquired
> in order to call the Python C_API. A quick look shows a call to
> PyObject_Print in the function and there may be other such calls. The right
> fix is probably to use a couple of ifdefs if there is an easy way to
> determine the Python interpreter configuration <looks>... WITH_THREAD seems
> to be the right flag.
>

I totally missed the PyObject_Print calls on read-through.  Okay, this
makes sense now.  I'll put together a patch the next time I'm waiting on a
build :)

A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20120814/1d8d2ea9/attachment.html 


More information about the NumPy-Discussion mailing list