Raymond Hettinger added the comment:

> I'm not sure that you understand what you are trying to do.

The goal is to avoid possible re-entrancy both now and in the future.  Since 
PyMem_RawMalloc is thread-safe and doesn't require the GIL to be held, it is 
guaranteed that there won't be a callback into regular Python that could mutate 
any of the data structures.

----------

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

Reply via email to