Python bindings don't compile with Python 3.11.0a4 (low-pri)
Downstream Fedora bug at https://bugzilla.redhat.com/show_bug.cgi?id=2050102.
The Python frame analysis code at https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/main/subprojects/gst-python/gi/overrides/gstmodule.c#L669 in function pygst_debug_log
reads private members of the PyFrameObject structure directly.
In https://docs.python.org/3.11/whatsnew/3.11.html under bullet "Changes of the private PyFrameObject structure members", there's an explanation of the changes involved to make this work with Python 3.11
My colleagues on the Fedora Python team are doing test builds against Python 3.11 now, as they hope to start migrating to it for Fedora 37, and want upstream projects to be ready for the changes in plenty of time. I'm not in a position to work on this myself, but I'm raising an issue so that if someone has time and motivation, they can start the migration to Python 3.11 compatible frame analysis now; note that some care will be needed to maintain back-compat to Python before Python 3.8.