mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-132775: Add _PyCode_GetXIData() (gh-133475)
This commit is contained in:
parent
e9616110aa
commit
ea598730ef
6 changed files with 116 additions and 6 deletions
|
@ -1984,6 +1984,11 @@ get_crossinterp_data(PyObject *self, PyObject *args, PyObject *kwargs)
|
|||
goto error;
|
||||
}
|
||||
}
|
||||
else if (strcmp(mode, "code") == 0) {
|
||||
if (_PyCode_GetXIData(tstate, obj, xidata) != 0) {
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
else {
|
||||
PyErr_Format(PyExc_ValueError, "unsupported mode %R", modeobj);
|
||||
goto error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue