Skip to content

Commit 4046069

Browse files
authored
bpo-36722: Add What's New entry for debug ABI (GH-12957)
1 parent 01f073f commit 4046069

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Doc/whatsnew/3.8.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,30 @@ subdirectories).
9898

9999
(Contributed by Carl Meyer in :issue:`33499`.)
100100

101+
Debug build uses the same ABI as release build
102+
-----------------------------------------------
103+
104+
Python now uses the same ABI when built in release and in debug mode. On Unix,
105+
when Python is build in debug mode, it is now possible to load C extensions
106+
built in release mode and C extensions built using the stable ABI.
107+
108+
Release build and debug build are now ABI compatible: the ``Py_DEBUG`` define
109+
no longer implies the ``Py_TRACE_REFS`` define which introduces the only ABI
110+
incompatibility. A new ``./configure --with-trace-refs`` build option is now
111+
required to get ``Py_TRACE_REFS`` define which adds :func:`sys.getobjects`
112+
function and :envvar:`PYTHONDUMPREFS` environment variable.
113+
(Contributed by Victor Stinner in :issue:`36465`.)
114+
115+
On Unix, C extensions are no longer linked to libpython. It is now possible to
116+
load a C extension built using a shared library Python
117+
with a statically linked Python.
118+
(Contributed by Victor Stinner in :issue:`21536`.)
119+
120+
On Unix, when Python is built in debug mode, import now also looks for C
121+
extensions compiled in release mode and for C extensions compiled with the
122+
stable ABI.
123+
(Contributed by Victor Stinner in :issue:`36722`.)
124+
101125

102126
Other Language Changes
103127
======================

0 commit comments

Comments
 (0)