Serhiy Storchaka added the comment:

Okay, if there is no way to test this with certainty, tests may be omitted.

Why res == 0 is added? If PyDict_SetItem() triggers recursive calling of 
_PyObjectDict_SetItem() which calls PyDict_SetItem() it may be possible that 
the first PyDict_SetItem() is failed while the dict is changed by the second 
PyDict_SetItem() and CACHED_KEYS(tp) becomes outdated.

----------
assignee:  -> inada.naoki

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

Reply via email to