Skip to content

gh-106320: Remove private _PyMem API #107187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2023
Merged

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jul 24, 2023

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 private _PyMem functions to the internal C API (pycore_pymem.h):

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

No longer export these functions.
@vstinner vstinner enabled auto-merge (squash) July 24, 2023 18:24
@vstinner vstinner merged commit 3071867 into python:main Jul 24, 2023
@vstinner vstinner deleted the pycore_pymem branch July 24, 2023 18:48
jtcave pushed a commit to jtcave/cpython that referenced this pull request Jul 27, 2023
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.
clin1234 added a commit to clin1234/cx_Freeze that referenced this pull request Dec 16, 2024
Because of python/cpython#107187, _PyMem_RawStrdup is no longer available publicly when including Python.h in Python 3.13 or later.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants