Xiang Zhang added the comment:

In pymem.h, it's stated that "The GIL must be held when using these APIs". I 
think the reason is when PYMALLOC_DEBUG is defined, they finally delegate to 
PyObject_Malloc.

Victor must be familiar with them since once he proposed to remote the 
restriction: https://mail.python.org/pipermail/python-dev/2013-June/126822.html.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue31282>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to