FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.15] gh-121617: Fix Py_CLEAR() in C++: replace NULL with _Py_NULL (GH-157067) by miss-islington · Pull Request #157186 · python/cpython · GitHub

Repository navigation

[3.15] gh-121617: Fix Py_CLEAR() in C++: replace NULL with _Py_NULL (GH-157067) - #157186

Merged
serhiy-storchaka merged 2 commits into
python:3.15from
miss-islington:backport-36c7440-3.15
Oct 10, 2026
Merged

serhiy-storchaka merged 2 commits into
python:3.15from
miss-islington:backport-36c7440-3.15

Conversation

miss-islington commented Sep 8, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor
  • 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)

Co-authored-by: Victor Stinner vstinner@python.org

…ythonGH-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)

Co-authored-by: Victor Stinner <vstinner@python.org>

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

serhiy-storchaka merged commit 748fea0 into python:3.15 Oct 10, 2026
51 checks passed
miss-islington deleted the backport-36c7440-3.15 branch October 10, 2026 11:01

Copy link
Copy Markdown
Member

The change lacks the 2 following commits: I created #159143 to backport them as well.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL