summaryrefslogtreecommitdiffstats
path: root/Python/pymath.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-11-09 15:29:23 (GMT)
committerGitHub <noreply@github.com>2022-11-09 15:29:23 (GMT)
commit108289085719db8b227d65ce945e806f91be8f80 (patch)
tree04f04fb56672370eacd705c0f5b09b6d031a487b /Python/pymath.c
parentcf5dbb47a2aab02f65c5b25ee1b4886e1b3dfd16 (diff)
downloadcpython-108289085719db8b227d65ce945e806f91be8f80.zip
cpython-108289085719db8b227d65ce945e806f91be8f80.tar.gz
cpython-108289085719db8b227d65ce945e806f91be8f80.tar.bz2
gh-98724: Fix Py_CLEAR() macro side effects (#99100) (#99288)
The Py_CLEAR(), Py_SETREF() and Py_XSETREF() macros now only evaluate their argument once. If an argument has side effects, these side effects are no longer duplicated. Add test_py_clear() and test_py_setref() unit tests to _testcapi. (cherry picked from commit c03e05c2e72f3ea5e797389e7d1042eef85ad37a)
Diffstat (limited to 'Python/pymath.c')
0 files changed, 0 insertions, 0 deletions