[Numpy-discussion] Do getitem/setitem already have GIL?

Steve Mitchell mitchell at intertrust.com
Wed Apr 20 15:22:49 EDT 2016


When writing custom PyArray_ArrFuncs getitem() and setitem(), do I need to acquire the GIL, or has it been done for me already by the caller?

  --Steve

http://docs.scipy.org/doc/numpy/reference/c-api.array.html?highlight=allow_c_api#group-2
http://docs.scipy.org/doc/numpy/reference/internals.code-explanations.html?highlight=gil#function-call
http://docs.scipy.org/doc/numpy/reference/c-api.types-and-structures.html
https://docs.python.org/2/c-api/init.html#thread-state-and-the-global-interpreter-lock

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160420/2d674107/attachment.html>


More information about the NumPy-Discussion mailing list