GH-132417: ctypes: Fix potential Py_DECREF(NULL) in py_object handling#132418
GH-132417: ctypes: Fix potential Py_DECREF(NULL) in py_object handling#132418picnixz merged 3 commits intopython:mainfrom
Conversation
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
|
You don't need to force-push, because all commits will be squashed on merge. |
Misc/NEWS.d/next/Library/2025-04-11-21-48-49.gh-issue-132417.uILGdS.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
|
I'll let you apply / reject the suggestions and will merge this by the end of the week. Thanks for the fix! |
…g functions returning `PyObject *` (pythonGH-132418) Some functions (such as `PyErr_Occurred`) with a `restype` set to `ctypes.py_object` may return NULL without setting an exception. (cherry picked from commit 2aab2db) Co-authored-by: Nicolas Trangez <ikke@nicolast.be>
|
GH-132425 is a backport of this pull request to the 3.13 branch. |
…ng functions returning `PyObject *` (GH-132418) (#132425) GH-132417: ctypes: Fix potential `Py_DECREF(NULL)` when handling functions returning `PyObject *` (GH-132418) Some functions (such as `PyErr_Occurred`) with a `restype` set to `ctypes.py_object` may return NULL without setting an exception. (cherry picked from commit 2aab2db) Co-authored-by: Nicolas Trangez <ikke@nicolast.be>
|
Uh oh!
There was an error while loading. Please reload this page.