File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,30 @@ subdirectories).
98
98
99
99
(Contributed by Carl Meyer in :issue: `33499 `.)
100
100
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
+
101
125
102
126
Other Language Changes
103
127
======================
You can’t perform that action at this time.
0 commit comments