10000 gh-98724: Fix Py_CLEAR() macro side effects by vstinner · Pull Request #99100 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-98724: Fix Py_CLEAR() macro side effects #99100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 9, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
there are => these are
  • Loading branch information
vstinner committed Nov 9, 2022
commit e33beba6be4afbaed6098ca3660dfe9658c8eba6
6 changes: 3 additions & 3 deletions Doc/c-api/refcounting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ of Python objects.

.. versionchanged:: 3.12
The macro argument is now only evaluated once. If the argument has side
effects, there are no longer duplicated.
effects, these are no longer duplicated.


.. c:function:: void Py_IncRef(PyObject *o)
Expand Down Expand Up @@ -168,7 +168,7 @@ of Python objects.

.. versionchanged:: 3.12
The macro arguments are now only evaluated once. If an argument has side
effects, there are no longer duplicated.
effects, these are no longer duplicated.


.. c:macro:: Py_XSETREF(dst, src)
Expand All @@ -180,4 +180,4 @@ of Python objects.

.. versionchanged:: 3.12
The macro arguments are now only evaluated once. If an argument has side
effects, there are no longer duplicated.
effects, these are no longer duplicated.
0