Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 64f158e

Browse files
authored
gh-110397: Add Py_IsFinalizing() to the stable ABI (#110441)
1 parent b987fdb commit 64f158e

File tree

6 files changed

+9
-2
lines changed

6 files changed

+9
-2
lines changed

Doc/data/stable_abi.dat

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/cpython/pylifecycle.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,3 @@ PyAPI_FUNC(PyStatus) Py_NewInterpreterFromConfig(
8181
typedef void (*atexit_datacallbackfunc)(void *);
8282
PyAPI_FUNC(int) PyUnstable_AtExit(
8383
PyInterpreterState *, atexit_datacallbackfunc, void *);
84-
85-
PyAPI_FUNC(int) Py_IsFinalizing(void);

Include/pylifecycle.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ PyAPI_FUNC(PyOS_sighandler_t) PyOS_setsig(int, PyOS_sighandler_t);
6060
PyAPI_DATA(const unsigned long) Py_Version;
6161
#endif
6262

63+
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030D0000
64+
PyAPI_FUNC(int) Py_IsFinalizing(void);
65+
#endif
66+
6367
#ifndef Py_LIMITED_API
6468
# define Py_CPYTHON_PYLIFECYCLE_H
6569
# include "cpython/pylifecycle.h"

Lib/test/test_stable_abi_ctypes.py

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Misc/stable_abi.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2460,3 +2460,5 @@
24602460
added = '3.13'
24612461
[function.PyMapping_HasKeyStringWithError]
24622462
added = '3.13'
2463+
[function.Py_IsFinalizing]
2464+
added = '3.13'

PC/python3dll.c

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)