[3.14] gh-132775: Support Fallbacks in _PyObject_GetXIData() (gh-134418) · python/cpython@2ffc10b · GitHub
Skip to content

Commit 2ffc10b

Browse files
[3.14] gh-132775: Support Fallbacks in _PyObject_GetXIData() (gh-134418)
It now supports a "full" fallback to _PyFunction_GetXIData() and then `_PyPickle_GetXIData()`. There's also room for other fallback modes if that later makes sense. (cherry picked from commit 88f8102, AKA gh-133482) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
1 parent cd3395a commit 2ffc10b

12 files changed

Lines changed: 32041 additions & 31540 deletions

Doc/data/python3.14.abi

Lines changed: 31460 additions & 31401 deletions
Large diffs are not rendered by default.

Include/internal/pycore_crossinterp.h

Lines changed: 23 additions & 2 deletions

Include/internal/pycore_crossinterp_data_registry.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ typedef struct _xid_regitem {
1717
/* This is NULL for builtin types. */
1818
PyObject *weakref;
1919
size_t refcount;
20-
xidatafunc getdata;
20+
_PyXIData_getdata_t getdata;
2121
} _PyXIData_regitem_t;
2222

2323
typedef struct {
@@ -30,7 +30,7 @@ typedef struct {
3030
PyAPI_FUNC(int) _PyXIData_RegisterClass(
3131
PyThreadState *,
3232
PyTypeObject *,
33-
xidatafunc);
33+
_PyXIData_getdata_t);
3434
PyAPI_FUNC(int) _PyXIData_UnregisterClass(
3535
PyThreadState *,
3636
PyTypeObject *);

Lib/test/support/import_helper.py

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)