Skip to content

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

Merged
vstinner merged 1 commit into
python:3.13from
vstinner:test_clear13
Sep 8, 2026
Merged

[3.13] gh-121617: Fix Py_CLEAR() in C++: replace NULL with _Py_NULL (#157067)#157189
vstinner merged 1 commit into
python:3.13from
vstinner:test_clear13

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 a4ab2c1 into python:3.13 Sep 8, 2026
44 checks passed
@vstinner
vstinner deleted the test_clear13 branch September 8, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant