Skip to content

Commit e63b60e

Browse files
committed
Style and grammar edits for ABI news entries
1 parent 55d0351 commit e63b60e

4 files changed

Lines changed: 24 additions & 22 deletions

File tree

Doc/whatsnew/3.8.rst

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,20 +101,21 @@ subdirectories).
101101
Debug build uses the same ABI as release build
102102
-----------------------------------------------
103103

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.
104+
Python now uses the same ABI whether it built in release or debug mode. On
105+
Unix, when Python is built in debug mode, it is now possible to load C
106+
extensions built in release mode and C extensions built using the stable ABI.
107+
108+
Release builds and debug builds are now ABI compatible: defining the
109+
``Py_DEBUG`` macro no longer implies the ``Py_TRACE_REFS`` macro, which
110+
introduces the only ABI incompatibility. The ``Py_TRACE_REFS`` macro, which
111+
adds the :func:`sys.getobjects` function and the :envvar:`PYTHONDUMPREFS`
112+
environment variable, can be set using the new ``./configure --with-trace-refs``
113+
build option.
113114
(Contributed by Victor Stinner in :issue:`36465`.)
114115

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.
116+
On Unix, C extensions are no longer linked to libpython. It is now possible
117+
for a statically linked Python to load a C extension built using a shared
118+
library Python.
118119
(Contributed by Victor Stinner in :issue:`21536`.)
119120

120121
On Unix, when Python is built in debug mode, import now also looks for C
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
Release build and debug build are now ABI compatible: the ``Py_DEBUG`` define
2-
no longer implies ``Py_TRACE_REFS`` define which introduces the only ABI
3-
incompatibility. A new ``./configure --with-trace-refs`` build option is now
4-
required to get ``Py_TRACE_REFS`` define which adds :func:`sys.getobjects`
5-
function and ``PYTHONDUMPREFS`` environment variable.
1+
Release builds and debug builds are now ABI compatible: defining the
2+
``Py_DEBUG`` macro no longer implies the ``Py_TRACE_REFS`` macro, which
3+
introduces the only ABI incompatibility. The ``Py_TRACE_REFS`` macro, which
4+
adds the :func:`sys.getobjects` function and the :envvar:`PYTHONDUMPREFS`
5+
environment variable, can be set using the new ``./configure --with-trace-refs``
6+
build option.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
On Unix, C extensions are no longer linked to libpython.
22

3-
It is now possible to load a C extension built using a shared library Python
4-
with a statically linked Python.
3+
It is now possible for a statically linked Python to load a C extension built
4+
using a shared library Python.
55

66
When Python is embedded, ``libpython`` must not be loaded with ``RTLD_LOCAL``,
77
but ``RTLD_GLOBAL`` instead. Previously, using ``RTLD_LOCAL``, it was already
8-
not possible to load C extensions which were not linked to ``libpython``, like
9-
C extensions of the standard library built by the ``*shared*`` section of
8+
not possible to load C extensions which were not linked to ``libpython``, such
9+
as C extensions of the standard library built by the ``*shared*`` section of
1010
``Modules/Setup``.
1111

1212
distutils, python-config and python-config.py have been modified.

Misc/SpecialBuilds.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
This file describes some special Python build types enabled via compile-time
2-
preprocessor defines.
2+
preprocessor directives.
33

44
IMPORTANT: if you want to build a debug-enabled Python, it is recommended that
55
you use ``./configure --with-pydebug``, rather than the options listed here.

0 commit comments

Comments
 (0)