summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-10-17 00:41:51 (GMT)
committerGitHub <noreply@github.com>2023-10-17 00:41:51 (GMT)
commitcc71cc925662cb089b5c6fe17df00d00045dfd71 (patch)
tree66629945768e18b3ec3ec33a02f9a78f018847c2 /Doc
parentcf9c25c719ba9b0f5bde90fc8b8bba7942d10151 (diff)
downloadcpython-cc71cc925662cb089b5c6fe17df00d00045dfd71.zip
cpython-cc71cc925662cb089b5c6fe17df00d00045dfd71.tar.gz
cpython-cc71cc925662cb089b5c6fe17df00d00045dfd71.tar.bz2
gh-85283: Add PyMem_RawMalloc() to the limited C API (#108570)
Add PyMem_RawMalloc(), PyMem_RawCalloc(), PyMem_RawRealloc() and PyMem_RawFree() to the limited C API. These functions were added by Python 3.4 and are needed to port stdlib extensions to the limited C API, like grp and pwd. Co-authored-by: Erlend E. Aasland <erlend@python.org>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/data/stable_abi.dat4
-rw-r--r--Doc/whatsnew/3.13.rst5
2 files changed, 9 insertions, 0 deletions
diff --git a/Doc/data/stable_abi.dat b/Doc/data/stable_abi.dat
index 6ec9c90..267d2b8 100644
--- a/Doc/data/stable_abi.dat
+++ b/Doc/data/stable_abi.dat
@@ -388,6 +388,10 @@ function,PyMapping_Values,3.2,,
function,PyMem_Calloc,3.7,,
function,PyMem_Free,3.2,,
function,PyMem_Malloc,3.2,,
+function,PyMem_RawCalloc,3.13,,
+function,PyMem_RawFree,3.13,,
+function,PyMem_RawMalloc,3.13,,
+function,PyMem_RawRealloc,3.13,,
function,PyMem_Realloc,3.2,,
type,PyMemberDef,3.2,,full-abi
var,PyMemberDescr_Type,3.2,,
diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst
index 01f8208..ec76659 100644
--- a/Doc/whatsnew/3.13.rst
+++ b/Doc/whatsnew/3.13.rst
@@ -1053,6 +1053,11 @@ New Features
parameter names.
(Contributed by Serhiy Storchaka in :gh:`110815`.)
+* Add :c:func:`PyMem_RawMalloc`, :c:func:`PyMem_RawCalloc`,
+ :c:func:`PyMem_RawRealloc` and :c:func:`PyMem_RawFree` to the limited C API
+ (version 3.13).
+ (Contributed by Victor Stinner in :gh:`85283`.)
+
Porting to Python 3.13
----------------------