]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91321: Fix compatibility with C++ older than C++11 (#93784) (#93802)
authorVictor Stinner <vstinner@python.org>
Tue, 14 Jun 2022 14:05:14 +0000 (16:05 +0200)
committerGitHub <noreply@github.com>
Tue, 14 Jun 2022 14:05:14 +0000 (16:05 +0200)
commitef591cf8e3725e74489f4c19ca85b87cf6886852
tree7e476e00cb4b866dc2e4ec0ccf69c779a506abbe
parent871b1dc469b3daccb7c3e7fcaddd245137edd719
gh-91321: Fix compatibility with C++ older than C++11 (#93784) (#93802)

* Fix the compatibility of the Python C API with C++ older than C++11.
* _Py_NULL is only defined as nullptr on C++11 and newer.

(cherry picked from commit 4caf5c2753f1aa28d6f4bc1aa377975fd2a62331)

* test_cppext now builds the C++ extension with setuptools.
* Add @test.support.requires_venv_with_pip.

(cherry picked from commit ca0cc9c433830e14714a5cc93fb4e7254da3dd76)
Include/pyport.h
Lib/test/_testcppext.cpp
Lib/test/setup_testcppext.py [new file with mode: 0644]
Lib/test/support/__init__.py
Lib/test/test_cppext.py
Lib/test/test_venv.py
Misc/NEWS.d/next/C API/2022-06-13-21-37-31.gh-issue-91321.DgJFvS.rst [new file with mode: 0644]