[issue25135] Deques to adopt the standard clearing procedure for mutable objects

Raymond Hettinger report at bugs.python.org
Fri Sep 25 20:15:10 CEST 2015


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 <report at bugs.python.org>
<http://bugs.python.org/issue25135>
_______________________________________


More information about the Python-bugs-list mailing list