summaryrefslogtreecommitdiffstats
path: root/Include/modsupport.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-07-03 16:36:57 (GMT)
committerGitHub <noreply@github.com>2024-07-03 16:36:57 (GMT)
commitf8373db153920b890c2e2dd8def249e8df63bcc6 (patch)
tree4d021178eaaf6effe252a53d73f654bace180bb1 /Include/modsupport.h
parent7c66906802cd8534b05264bd47acf9eb9db6d09e (diff)
downloadcpython-f8373db153920b890c2e2dd8def249e8df63bcc6.zip
cpython-f8373db153920b890c2e2dd8def249e8df63bcc6.tar.gz
cpython-f8373db153920b890c2e2dd8def249e8df63bcc6.tar.bz2
gh-112136: Restore removed _PyArg_Parser (#121262)
Restore the private _PyArg_Parser structure and the private _PyArg_ParseTupleAndKeywordsFast() function, previously removed in Python 3.13 alpha 1. Recreate Include/cpython/modsupport.h header file.
Diffstat (limited to 'Include/modsupport.h')
-rw-r--r--Include/modsupport.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/modsupport.h b/Include/modsupport.h
index ea4c0fc..af995f5 100644
--- a/Include/modsupport.h
+++ b/Include/modsupport.h
@@ -134,6 +134,12 @@ PyAPI_FUNC(PyObject *) PyModule_FromDefAndSpec2(PyModuleDef *def,
#endif /* New in 3.5 */
+#ifndef Py_LIMITED_API
+# define Py_CPYTHON_MODSUPPORT_H
+# include "cpython/modsupport.h"
+# undef Py_CPYTHON_MODSUPPORT_H
+#endif
+
#ifdef __cplusplus
}
#endif