[issue31356] Add context manager to temporarily disable GC

Serhiy Storchaka report at bugs.python.org
Thu Sep 7 17:55:34 EDT 2017


Serhiy Storchaka added the comment:

Note that threads can break this. Even without calling gc.enable() explicitly, "with gc_disabled()" in different thread can enable GC inside other "with gc_disabled()" block.

----------
nosy: +pitrou, serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31356>
_______________________________________


More information about the Python-bugs-list mailing list