We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30aa724 commit 422b960Copy full SHA for 422b960
Include/cpython/pystate.h
@@ -231,6 +231,9 @@ struct _ts {
231
* if it is NULL. */
232
PyAPI_FUNC(PyThreadState *) PyThreadState_GetUnchecked(void);
233
234
+// Alias kept for backward compatibility
235
+#define _PyThreadState_UncheckedGet PyThreadState_GetUnchecked
236
+
237
238
// Disable tracing and profiling.
239
PyAPI_FUNC(void) PyThreadState_EnterTracing(PyThreadState *tstate);
Misc/NEWS.d/next/C API/2023-11-15-18-36-21.gh-issue-112026._Yybr5.rst
@@ -0,0 +1,3 @@
1
+Add again the private ``_PyThreadState_UncheckedGet()`` function as an alias
2
+to the new public :c:func:`PyThreadState_GetUnchecked` function. Patch by
3
+Victor Stinner.
0 commit comments