[New-bugs-announce] [issue44874] Deprecate Py_TRASHCAN_SAFE_BEGIN/END
Irit Katriel
report at bugs.python.org
Mon Aug 9 14:58:05 EDT 2021
New submission from Irit Katriel <iritkatriel at gmail.com>:
The old trashcan macros - Py_TRASHCAN_SAFE_BEGIN/END are unsafe (see Issue40608).
They were removed from the limited C API in 3.9:
https://github.com/python/cpython/blob/main/Doc/whatsnew/3.9.rst#removed-1
They should be removed altogether, in favour of Py_TRASHCAN_BEGIN/END. Since they are not documented, I think this would be done by changing the comment before their definition in Include/cpython/object.h.
----------
components: Interpreter Core
messages: 399285
nosy: iritkatriel
priority: normal
severity: normal
status: open
title: Deprecate Py_TRASHCAN_SAFE_BEGIN/END
versions: Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44874>
_______________________________________
More information about the New-bugs-announce
mailing list