classification
Title: Deprecate Py_TRASHCAN_SAFE_BEGIN/END
Type: Stage: patch review
Components: Interpreter Core Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: iritkatriel, lukasz.langa, pablogsal
Priority: normal Keywords: patch

Created on 2021-08-09 18:58 by iritkatriel, last changed 2021-08-09 19:03 by iritkatriel.

Pull Requests
URL Status Linked Edit
PR 27693 open iritkatriel, 2021-08-09 19:03
Messages (1)
msg399285 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-08-09 18:58
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.
History
Date User Action Args
2021-08-09 19:03:52iritkatrielsetkeywords: + patch
stage: patch review
pull_requests: + pull_request26179
2021-08-09 19:03:16iritkatrielsetnosy: + lukasz.langa, pablogsal
2021-08-09 18:58:05iritkatrielcreate