]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-106320: Remove private _PyMem API (#107187)
authorVictor Stinner <vstinner@python.org>
Mon, 24 Jul 2023 18:48:06 +0000 (20:48 +0200)
committerGitHub <noreply@github.com>
Mon, 24 Jul 2023 18:48:06 +0000 (18:48 +0000)
commit307186704d8327d6c67b0650e49b125758a25bbc
treebc16b1afa6e77c8d5f9c9b276a4f0f6483c950de
parentd27eb1e406a8789d9eaba6dbfed5c2e5abe294fd
gh-106320: Remove private _PyMem API (#107187)

Move private _PyMem functions to the internal C API (pycore_pymem.h):

* _PyMem_GetCurrentAllocatorName()
* _PyMem_RawStrdup()
* _PyMem_RawWcsdup()
* _PyMem_Strdup()

No longer export these functions.

Move pymem_getallocatorsname() function from _testcapi to _testinternalcapi,
since the API moved to the internal C API.
Include/cpython/pymem.h
Include/internal/pycore_pymem.h
Lib/test/pythoninfo.py
Lib/test/test_cmd_line.py
Lib/test/test_sys.py
Modules/_testcapi/mem.c
Modules/_testinternalcapi.c
Modules/getpath.c