[New-bugs-announce] [issue41936] Remove macros Py_ALLOW_RECURSION/Py_END_ALLOW_RECURSION

Serhiy Storchaka report at bugs.python.org
Sun Oct 4 18:20:31 EDT 2020


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

Macros Py_ALLOW_RECURSION and Py_END_ALLOW_RECURSION together with field recursion_critical of the PyInterpreterState structure were added in 5b222135f8d2492713994f2cb003980e87ce6a72 but were never documented. It seems that the reason of adding them was to work around the fact that PyDict_GetItem() can silence any exception including recursion error. But PyDict_GetItem() no longer used in that code and the macros are also no longer used (see issue41909).

GvR proposed to remove these macros. I think that recursion_critical can be removed too.

----------
components: C API
messages: 377978
nosy: gvanrossum, serhiy.storchaka, vstinner
priority: normal
severity: normal
status: open
title: Remove macros Py_ALLOW_RECURSION/Py_END_ALLOW_RECURSION
type: enhancement
versions: Python 3.10

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


More information about the New-bugs-announce mailing list