]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-107211: No longer export internal variables (#107218)
authorVictor Stinner <vstinner@python.org>
Tue, 25 Jul 2023 03:48:04 +0000 (05:48 +0200)
committerGitHub <noreply@github.com>
Tue, 25 Jul 2023 03:48:04 +0000 (03:48 +0000)
commit3b309319cc2920587a8c74a6969fb47d69281126
treef44048e0149b8748234e814947e151c402ebd487
parentc5b13d6f80630d29bf5dca9cde53dfe15cf94f8b
gh-107211: No longer export internal variables (#107218)

No longer export these 5 internal C API variables:

* _PyBufferWrapper_Type
* _PyImport_FrozenBootstrap
* _PyImport_FrozenStdlib
* _PyImport_FrozenTest
* _Py_SwappedOp

Fix the definition of these internal functions, replace PyAPI_DATA()
with PyAPI_FUNC():

* _PyImport_ClearExtension()
* _PyObject_IsFreed()
* _PyThreadState_GetCurrent()
Include/internal/pycore_import.h
Include/internal/pycore_long.h
Include/internal/pycore_object.h
Include/internal/pycore_pyhash.h
Include/internal/pycore_pystate.h
Include/internal/pycore_typeobject.h