diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2025-05-12 16:10:56 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-12 22:10:56 +0000 |
commit | 8cf4947b0f2d37f7ffeca136ac4f99cb4cb70e5c (patch) | |
tree | 556a2a34633f18e7271467d73854ad344831f33d /Modules/_testinternalcapi.c | |
parent | 121ed71f4e395948d313249b2ad33e1e21581f8a (diff) | |
download | cpython-8cf4947b0f2d37f7ffeca136ac4f99cb4cb70e5c.tar.gz cpython-8cf4947b0f2d37f7ffeca136ac4f99cb4cb70e5c.zip |
gh-132775: Add _PyFunction_GetXIData() (gh-133481)
Diffstat (limited to 'Modules/_testinternalcapi.c')
-rw-r--r-- | Modules/_testinternalcapi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/_testinternalcapi.c b/Modules/_testinternalcapi.c index 3030f45d72c..92f744c5a5f 100644 --- a/Modules/_testinternalcapi.c +++ b/Modules/_testinternalcapi.c @@ -1989,6 +1989,11 @@ get_crossinterp_data(PyObject *self, PyObject *args, PyObject *kwargs) goto error; } } + else if (strcmp(mode, "func") == 0) { + if (_PyFunction_GetXIData(tstate, obj, xidata) != 0) { + goto error; + } + } else if (strcmp(mode, "script") == 0) { if (_PyCode_GetScriptXIData(tstate, obj, xidata) != 0) { goto error; |