Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f87c6d1

Browse filesBrowse files
[3.12] gh-102304: Fix 2 New Stable ABI Functions (gh-104762) (gh-105123)
1 parent e7cb216 commit f87c6d1
Copy full SHA for f87c6d1

File tree

4 files changed

+14
-1
lines changed
Filter options

4 files changed

+14
-1
lines changed

‎Include/object.h

Copy file name to clipboardExpand all lines: Include/object.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ you can count such references to the type object.)
590590
extern Py_ssize_t _Py_RefTotal;
591591
# define _Py_INC_REFTOTAL() _Py_RefTotal++
592592
# define _Py_DEC_REFTOTAL() _Py_RefTotal--
593-
# elif !defined(Py_LIMITED_API) || Py_LIMITED_API+0 > 0x030C0000
593+
# elif !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030C0000
594594
PyAPI_FUNC(void) _Py_IncRefTotal_DO_NOT_USE_THIS(void);
595595
PyAPI_FUNC(void) _Py_DecRefTotal_DO_NOT_USE_THIS(void);
596596
# define _Py_INC_REFTOTAL() _Py_IncRefTotal_DO_NOT_USE_THIS()

‎Lib/test/test_stable_abi_ctypes.py

Copy file name to clipboardExpand all lines: Lib/test/test_stable_abi_ctypes.py
+2Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Misc/stable_abi.toml

Copy file name to clipboardExpand all lines: Misc/stable_abi.toml
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2406,3 +2406,12 @@
24062406
added = '3.12'
24072407
[const.Py_TPFLAGS_ITEMS_AT_END]
24082408
added = '3.12'
2409+
2410+
[function._Py_IncRefTotal_DO_NOT_USE_THIS]
2411+
added = '3.12'
2412+
ifdef = 'Py_REF_DEBUG'
2413+
abi_only = true
2414+
[function._Py_DecRefTotal_DO_NOT_USE_THIS]
2415+
added = '3.12'
2416+
ifdef = 'Py_REF_DEBUG'
2417+
abi_only = true

‎PC/python3dll.c

Copy file name to clipboardExpand all lines: PC/python3dll.c
+2Lines changed: 2 additions & 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.