Skip to content

Commit e4a4fda

Browse files
committed
fix: Python 3.13 moved the undocumented _PyErr_SetKeyError function to private API
1 parent 3feb5b7 commit e4a4fda

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/JSObjectProxy.cc

+3
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,9 @@ PyObject *JSObjectProxyMethodDefinitions::JSObjectProxy_setdefault_method(JSObje
666666
return value;
667667
}
668668

669+
// Python 3.13 moved this undocumented function to private API. Re-exporting it here.
670+
extern void _PyErr_SetKeyError(PyObject *);
671+
669672
PyObject *JSObjectProxyMethodDefinitions::JSObjectProxy_pop_method(JSObjectProxy *self, PyObject *const *args, Py_ssize_t nargs) {
670673
PyObject *key;
671674
PyObject *default_value = NULL;

0 commit comments

Comments
 (0)