mirror of
https://github.com/thp/pyotherside.git
synced 2025-01-17 23:22:53 +08:00
Don't call PyEval_InitThreads() on Python 3.7+ (#132)
Since Python 3.7, the function does nothing. Moreover, it's deprecated since Python 3.9: https://docs.python.org/3.12/c-api/init.html#c.PyEval_InitThreads Since pyotherside requires Python 3.8, simply remove the call.
This commit is contained in:
parent
9a4d1a2a35
commit
4fa3406775
@ -1196,6 +1196,12 @@ flags for compiling and linking against Python on your system.
|
||||
ChangeLog
|
||||
=========
|
||||
|
||||
Version UNRELEASED
|
||||
------------------
|
||||
|
||||
* No longer call PyEval_InitThreads() at Python startup. It's no longer needed
|
||||
since Python 3.7.
|
||||
|
||||
Version 1.6.1 (2024-05-18)
|
||||
--------------------------
|
||||
|
||||
|
@ -532,7 +532,6 @@ QPythonPriv::QPythonPriv()
|
||||
PyImport_AppendInittab("pyotherside", PyOtherSide_init);
|
||||
|
||||
Py_InitializeEx(0);
|
||||
PyEval_InitThreads();
|
||||
|
||||
// Initialize sys.argv (https://github.com/thp/pyotherside/issues/77)
|
||||
int argc = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user