[New-bugs-announce] [issue31983] Officially add Py_SETREF and Py_XSETREF

Serhiy Storchaka report at bugs.python.org
Wed Nov 8 11:24:41 EST 2017


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

Private macros Py_SETREF and Py_XSETREF were introduced in 3.6 and backported to all maintained versions for fixing bugs (see issue20440 and issue26200). They are helpful and used not only for the primary purpose, but also for simplifying the code. Their names don't start from underscore because I planned to make them public and didn't want massive renaming and backporting conflicts. Now I think it is a time to add them officially to the stable C API.

----------
assignee: docs at python
components: Documentation, Interpreter Core
messages: 305878
nosy: docs at python, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Officially add Py_SETREF and Py_XSETREF
type: enhancement
versions: Python 3.7

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


More information about the New-bugs-announce mailing list