This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients audric, methane, serhiy.storchaka, vstinner, xiang.zhang
Date 2017-02-08.08:42:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1486543355.47.0.808074932138.issue29438@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-02-08 08:42:35serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, methane, xiang.zhang, audric
2017-02-08 08:42:35serhiy.storchakasetmessageid: <1486543355.47.0.808074932138.issue29438@psf.upfronthosting.co.za>
2017-02-08 08:42:35serhiy.storchakalinkissue29438 messages
2017-02-08 08:42:35serhiy.storchakacreate