diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2025-04-30 23:34:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-30 23:34:05 (GMT) |
commit | cb35c11d82efd2959bda0397abcc1719bf6bb0cb (patch) | |
tree | 24401105bae0254b93e5d31488fa0a814d0f90be /Include/internal/pycore_crossinterp.h | |
parent | 6c522debc218d441756bf631abe8ec8d6c6f1c45 (diff) | |
download | cpython-cb35c11d82efd2959bda0397abcc1719bf6bb0cb.zip cpython-cb35c11d82efd2959bda0397abcc1719bf6bb0cb.tar.gz cpython-cb35c11d82efd2959bda0397abcc1719bf6bb0cb.tar.bz2 |
gh-132775: Add _PyPickle_GetXIData() (gh-133107)
There's some extra complexity due to making sure we we get things right when handling functions and classes defined in the __main__ module. This is also reflected in the tests, including the addition of extra functions in test.support.import_helper.
Diffstat (limited to 'Include/internal/pycore_crossinterp.h')
-rw-r--r-- | Include/internal/pycore_crossinterp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Include/internal/pycore_crossinterp.h b/Include/internal/pycore_crossinterp.h index 4b7446a..4b4617f 100644 --- a/Include/internal/pycore_crossinterp.h +++ b/Include/internal/pycore_crossinterp.h @@ -171,6 +171,13 @@ PyAPI_FUNC(_PyBytes_data_t *) _PyBytes_GetXIDataWrapped( xid_newobjfunc, _PyXIData_t *); +// _PyObject_GetXIData() for pickle +PyAPI_DATA(PyObject *) _PyPickle_LoadFromXIData(_PyXIData_t *); +PyAPI_FUNC(int) _PyPickle_GetXIData( + PyThreadState *, + PyObject *, + _PyXIData_t *); + // _PyObject_GetXIData() for marshal PyAPI_FUNC(PyObject *) _PyMarshal_ReadObjectFromXIData(_PyXIData_t *); PyAPI_FUNC(int) _PyMarshal_GetXIData( |