New submission from Irit Katriel <iritkatr...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue44874>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to