-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
C API: Restore removed PyEval_InitThreads() function #117929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
collectd doesn't seem to be affected for 3 years: collectd/collectd@17d2fbe #if PY_VERSION_HEX < 0x03090000
// deprecated. Called by Py_Initialize(). Removed in Py3.11
// https://docs.python.org/3/c-api/init.html#c.PyEval_InitThreads
PyEval_InitThreads();
#else
Py_Initialize();
#endif The problem is that collected 5.12 is affected, there was no release since 2020. Only release candidates of a future 6.0 version. Fedora bug report: https://bugzilla.redhat.com/show_bug.cgi?id=2247197 |
gnumeric was fixed 4 months ago: https://gitlab.gnome.org/GNOME/gnumeric/-/commit/015de3d0df1d59e62e5bfeabab31834082b81196 |
pyotherside: I proposed a fix, https://github.com/thp/pyotherside/pull/132/files |
Fixed by change 75eed5b |
Uh oh!
There was an error while loading. Please reload this page.
Since Python 3.7, PyEval_InitThreads() does nothing, since the GIL is now always created: https://vstinner.github.io/python37-gil-change.html This function is deprecated since Python 3.9 and I removed it in Python 3.13 alpha1.
Problem: my Fedora team identified that 16 projects are affected by this function removal.
I propose to restore the function in Python 3.13 beta1, and remove it again in Python 3.14 alpha1.
Linked PRs
The text was updated successfully, but these errors were encountered: