aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Include/internal
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2025-05-12 16:10:56 -0600
committerGitHub <noreply@github.com>2025-05-12 22:10:56 +0000
commit8cf4947b0f2d37f7ffeca136ac4f99cb4cb70e5c (patch)
tree556a2a34633f18e7271467d73854ad344831f33d /Include/internal
parent121ed71f4e395948d313249b2ad33e1e21581f8a (diff)
downloadcpython-8cf4947b0f2d37f7ffeca136ac4f99cb4cb70e5c.tar.gz
cpython-8cf4947b0f2d37f7ffeca136ac4f99cb4cb70e5c.zip
gh-132775: Add _PyFunction_GetXIData() (gh-133481)
Diffstat (limited to 'Include/internal')
-rw-r--r--Include/internal/pycore_crossinterp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Include/internal/pycore_crossinterp.h b/Include/internal/pycore_crossinterp.h
index 9c9b2c2f9c5..19c55dd6598 100644
--- a/Include/internal/pycore_crossinterp.h
+++ b/Include/internal/pycore_crossinterp.h
@@ -200,6 +200,13 @@ PyAPI_FUNC(int) _PyCode_GetPureScriptXIData(
PyObject *,
_PyXIData_t *);
+// _PyObject_GetXIData() for functions
+PyAPI_FUNC(PyObject *) _PyFunction_FromXIData(_PyXIData_t *);
+PyAPI_FUNC(int) _PyFunction_GetXIData(
+ PyThreadState *,
+ PyObject *,
+ _PyXIData_t *);
+
/* using cross-interpreter data */