From d45bf29bd2eaaf42a649cf7b46145b0c5f7cec91 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 16 Apr 2024 13:54:18 +0200 Subject: [PATCH 1/3] Remove PyEval_InitThreads() call 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. --- src/qpython_priv.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/qpython_priv.cpp b/src/qpython_priv.cpp index 811301e..dfa28cb 100644 --- a/src/qpython_priv.cpp +++ b/src/qpython_priv.cpp @@ -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; From a7b0a6da3b504a591253ca56534f921e88044df8 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 23 May 2024 19:06:11 +0200 Subject: [PATCH 2/3] Update changelog --- docs/index.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index 45fba80..19fd0c2 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -499,7 +499,7 @@ The image provider must return a tuple ``(data, size, format)``: The pixel format of ``data`` (see `constants`_), ``pyotherside.format_data`` if ``data`` contains an encoded (PNG/JPEG) image instead of raw pixel data - or ``pyotherside.format_svg_data`` if ``data`` contains + or ``pyotherside.format_svg_data`` if ``data`` contains SVG image XML data. In order to register the image provider with PyOtherSide for use @@ -1196,6 +1196,12 @@ flags for compiling and linking against Python on your system. ChangeLog ========= +Version 1.6.2 +------------- + +* No longer call PyEval_InitThreads() at Python startup. It's no longer needed + since Python 3.7. + Version 1.6.1 (2024-05-18) -------------------------- From 3e1e18c3b5b821396c0f71c8c06735e265234b01 Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Fri, 31 May 2024 08:35:22 +0200 Subject: [PATCH 3/3] Versions are only assigned on release --- docs/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 19fd0c2..f1a2ed4 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1196,8 +1196,8 @@ flags for compiling and linking against Python on your system. ChangeLog ========= -Version 1.6.2 -------------- +Version UNRELEASED +------------------ * No longer call PyEval_InitThreads() at Python startup. It's no longer needed since Python 3.7.