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 methane
Recipients larry, methane, xiang.zhang
Date 2016-10-10.16:28:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476116904.99.0.0729967652511.issue28406@psf.upfronthosting.co.za>
In-reply-to
Content
I think the comment described "Why Py_ALLOW_RECURSION is required", not "t may be NULL even if s is in the intern dict".

> If PyDict_GetItem fails due to stack overflow, perhaps the Python process is doomed to fail soon anyway.

When I changed the code to use PyDict_SetDefault(), I found "USE_STACKCHECK" macro.
See https://docs.python.org/3/c-api/sys.html#c.PyOS_CheckStack

But I don't know this can be really happend. Interned dict only contains exact unicode objects. There is no chance for
calling user defined __hash__() or __eq__().
History
Date User Action Args
2016-10-10 16:28:25methanesetrecipients: + methane, larry, xiang.zhang
2016-10-10 16:28:24methanesetmessageid: <1476116904.99.0.0729967652511.issue28406@psf.upfronthosting.co.za>
2016-10-10 16:28:24methanelinkissue28406 messages
2016-10-10 16:28:24methanecreate