Kaydet (Commit) 5c403b20 authored tarafından Paul Ganssle's avatar Paul Ganssle Kaydeden (comit) Victor Stinner

bpo-36722: Style and grammar edits for ABI news entries (GH-12979)

üst 55d03511
...@@ -101,20 +101,21 @@ subdirectories). ...@@ -101,20 +101,21 @@ subdirectories).
Debug build uses the same ABI as release build Debug build uses the same ABI as release build
----------------------------------------------- -----------------------------------------------
Python now uses the same ABI when built in release and in debug mode. On Unix, Python now uses the same ABI whether it built in release or debug mode. On
when Python is build in debug mode, it is now possible to load C extensions Unix, when Python is built in debug mode, it is now possible to load C
built in release mode and C extensions built using the stable ABI. extensions built in release mode and C extensions built using the stable ABI.
Release build and debug build are now ABI compatible: the ``Py_DEBUG`` define Release builds and debug builds are now ABI compatible: defining the
no longer implies the ``Py_TRACE_REFS`` define which introduces the only ABI ``Py_DEBUG`` macro no longer implies the ``Py_TRACE_REFS`` macro, which
incompatibility. A new ``./configure --with-trace-refs`` build option is now introduces the only ABI incompatibility. The ``Py_TRACE_REFS`` macro, which
required to get ``Py_TRACE_REFS`` define which adds :func:`sys.getobjects` adds the :func:`sys.getobjects` function and the :envvar:`PYTHONDUMPREFS`
function and :envvar:`PYTHONDUMPREFS` environment variable. environment variable, can be set using the new ``./configure --with-trace-refs``
build option.
(Contributed by Victor Stinner in :issue:`36465`.) (Contributed by Victor Stinner in :issue:`36465`.)
On Unix, C extensions are no longer linked to libpython. It is now possible to On Unix, C extensions are no longer linked to libpython. It is now possible
load a C extension built using a shared library Python for a statically linked Python to load a C extension built using a shared
with a statically linked Python. library Python.
(Contributed by Victor Stinner in :issue:`21536`.) (Contributed by Victor Stinner in :issue:`21536`.)
On Unix, when Python is built in debug mode, import now also looks for C On Unix, when Python is built in debug mode, import now also looks for C
......
Release build and debug build are now ABI compatible: the ``Py_DEBUG`` define Release builds and debug builds are now ABI compatible: defining the
no longer implies ``Py_TRACE_REFS`` define which introduces the only ABI ``Py_DEBUG`` macro no longer implies the ``Py_TRACE_REFS`` macro, which
incompatibility. A new ``./configure --with-trace-refs`` build option is now introduces the only ABI incompatibility. The ``Py_TRACE_REFS`` macro, which
required to get ``Py_TRACE_REFS`` define which adds :func:`sys.getobjects` adds the :func:`sys.getobjects` function and the :envvar:`PYTHONDUMPREFS`
function and ``PYTHONDUMPREFS`` environment variable. environment variable, can be set using the new ``./configure --with-trace-refs``
build option.
On Unix, C extensions are no longer linked to libpython. On Unix, C extensions are no longer linked to libpython.
It is now possible to load a C extension built using a shared library Python It is now possible for a statically linked Python to load a C extension built
with a statically linked Python. using a shared library Python.
When Python is embedded, ``libpython`` must not be loaded with ``RTLD_LOCAL``, When Python is embedded, ``libpython`` must not be loaded with ``RTLD_LOCAL``,
but ``RTLD_GLOBAL`` instead. Previously, using ``RTLD_LOCAL``, it was already but ``RTLD_GLOBAL`` instead. Previously, using ``RTLD_LOCAL``, it was already
not possible to load C extensions which were not linked to ``libpython``, like not possible to load C extensions which were not linked to ``libpython``, such
C extensions of the standard library built by the ``*shared*`` section of as C extensions of the standard library built by the ``*shared*`` section of
``Modules/Setup``. ``Modules/Setup``.
distutils, python-config and python-config.py have been modified. distutils, python-config and python-config.py have been modified.
This file describes some special Python build types enabled via compile-time This file describes some special Python build types enabled via compile-time
preprocessor defines. preprocessor directives.
IMPORTANT: if you want to build a debug-enabled Python, it is recommended that IMPORTANT: if you want to build a debug-enabled Python, it is recommended that
you use ``./configure --with-pydebug``, rather than the options listed here. you use ``./configure --with-pydebug``, rather than the options listed here.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment