SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 1 Python

bpo-45476: Add _Py_RVALUE() macro (GH-29860)

Add a new _Py_RVALUE() macro to prevent using an expression as an
l-value.

Replace a "(void)" cast with the _Py_RVALUE() macro in the following
macros:

* PyCell_SET()
* PyList_SET_ITEM()
* PyTuple_SET_ITEM()
* _PyGCHead_SET_FINALIZED()
* _PyGCHead_SET_NEXT()
* asdl_seq_SET()
* asdl_seq_SET_UNTYPED()

Add also parentheses around macro arguments in PyCell_SET() and
PyTuple_SET_ITEM() macros.
V
Victor Stinner committed
c19c3a09618ac400538ee412f84be4c1196c7bab
Parent: f97ec09
Committed by GitHub <noreply@github.com> on 11/30/2021, 11:14:45 AM