[all-commits] [llvm/llvm-project] b2929b: [lldb] Adapt code to Python 3.13 (#70445)
Tulio Magno Quites Machado Filho via All-commits
all-commits at lists.llvm.org
Mon Oct 30 04:55:47 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b2929bebb6ce8d75acab4f2fde43213673cb6010
https://github.com/llvm/llvm-project/commit/b2929bebb6ce8d75acab4f2fde43213673cb6010
Author: Tulio Magno Quites Machado Filho <tuliom at redhat.com>
Date: 2023-10-30 (Mon, 30 Oct 2023)
Changed paths:
M lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
M lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
Log Message:
-----------
[lldb] Adapt code to Python 3.13 (#70445)
1. Remove usage of PyEval_ThreadsInitialized and PyEval_InitThreads
Both of these functions were removed in Python 3.13 [1] after being
deprecated since Python 3.9.
According to "What's new in Python 3.13" document [1]:
Since Python 3.7, Py_Initialize() always creates the GIL: calling
PyEval_InitThreads() did nothing and PyEval_ThreadsInitialized()
always returned non-zero.
2. Replace _Py_IsFinalizing() with Py_IsFinalizing().
[1] https://docs.python.org/3.13/whatsnew/3.13.html
More information about the All-commits
mailing list