[issue33712] OrderedDict can set an exception in tp_clear
STINNER Victor
report at bugs.python.org
Thu May 31 10:16:40 EDT 2018
STINNER Victor <vstinner at redhat.com> added the comment:
> The tp_clear handler of OrderedDict can set an exception when fail to allocate a nodes cache for an empty dict. An exception in tp_clear is not expected and caused a crash in the garbage collector.
If it's a cache, it would be better to cancel the caching, and just destroy the dictionary, no?
----------
nosy: +vstinner
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33712>
_______________________________________
More information about the Python-bugs-list
mailing list