File python311_frame.patch of Package python-sip4
Taken from https://bugzilla.redhat.com/show_bug.cgi?id=2062144 diff --git a/siplib/siplib.c b/siplib/siplib.c index db52b68..8019e97 100644 --- a/siplib/siplib.c +++ b/siplib/siplib.c @@ -13747,7 +13747,11 @@ static struct _frame *sip_api_get_frame(int depth) while (frame != NULL && depth > 0) { +#if PY_VERSION_HEX >= 0x03090000 + frame = PyFrame_GetBack(frame); +#else frame = frame->f_back; +#endif --depth; }