]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-92898: Enhance _testcppext test on cast to PyObject* (GH-93111)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 26 May 2022 23:39:28 +0000 (16:39 -0700)
committerGitHub <noreply@github.com>
Thu, 26 May 2022 23:39:28 +0000 (16:39 -0700)
commit9303a5ac30c3fd4f04881d432b10be894959cfbd
tree64d14ae2491d6fd4c0513a38573f0b856df18e5d
parent33336e46daff556e3850b75045e33434a8f46378
gh-92898: Enhance _testcppext test on cast to PyObject* (GH-93111)

* Add StrongRef class.
* Rename and reformat functions of the _Py_CAST() implementation.
(cherry picked from commit 20d30ba2ccf9182e4f08db112f428c909148a40b)

Co-authored-by: Victor Stinner <vstinner@python.org>
Include/pyport.h
Lib/test/_testcppext.cpp
Misc/NEWS.d/next/C API/2022-05-23-15-22-18.gh-issue-92898.Qjc9d3.rst [new file with mode: 0644]