Skip to content

[3.14] gh-121617: Fix Py_CLEAR() in C++: replace NULL with _Py_NULL (#157067) - #157187

Merged
vstinner merged 2 commits into
python:3.14from
vstinner:test_clear14
Sep 8, 2026
Merged

vstinner merged 2 commits into
python:3.14from
vstinner:test_clear14

Conversation

@vstinner

@vstinner vstinner commented Sep 8, 2026 •

Copy link
Copy Markdown
Member
  • Enhance Py_CLEAR() test in test_cext and test_cppext. Check that Py_CLEAR(obj) sets obj to NULL.
  • Add also tests on Py_SETREF() and Py_BEGIN_CRITICAL_SECTION().

(cherry picked from commit 36c7440)

…ython#157067)

* Enhance Py_CLEAR() test in test_cext and test_cppext.
  Check that Py_CLEAR(obj) sets obj to NULL.
* Add also tests on Py_SETREF() and Py_BEGIN_CRITICAL_SECTION().

(cherry picked from commit 36c7440)
@vstinner
vstinner enabled auto-merge (squash) September 8, 2026 14:54
@vstinner
vstinner merged commit 89926c6 into python:3.14 Sep 8, 2026
47 checks passed
@vstinner
vstinner deleted the test_clear14 branch September 8, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant