Skip to content

Commit 3fde750

Browse files
bpo-36707: Document "m" removal from sys.abiflags (GH-14090)
(cherry picked from commit 7efc526) Co-authored-by: Victor Stinner <vstinner@redhat.com>
1 parent f78e66c commit 3fde750

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

Doc/library/sys.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ always available.
1616
On POSIX systems where Python was built with the standard ``configure``
1717
script, this contains the ABI flags as specified by :pep:`3149`.
1818

19+
.. versionchanged:: 3.8
20+
Default flags became an empty string (``m`` flag for pymalloc has been
21+
removed).
22+
1923
.. versionadded:: 3.2
2024

2125

Doc/whatsnew/3.8.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,22 @@ Optimizations
936936
Build and C API Changes
937937
=======================
938938

939+
* Default :data:`sys.abiflags` became an empty string: the ``m`` flag for
940+
pymalloc became useless (builds with and without pymalloc are ABI compatible)
941+
and so has been removed. (Contributed by Victor Stinner in :issue:`36707`.)
942+
943+
Example of changes:
944+
945+
* Only ``python3.8`` program is installed, ``python3.8m`` program is gone.
946+
* Only ``python3.8-config`` script is installed, ``python3.8m-config`` script
947+
is gone.
948+
* The ``m`` flag has been removed from the suffix of dynamic library
949+
filenames: extension modules in the standard library as well as those
950+
produced and installed by third-party packages, like those downloaded from
951+
PyPI. On Linux, for example, the Python 3.7 suffix
952+
``.cpython-37m-x86_64-linux-gnu.so`` became
953+
``.cpython-38-x86_64-linux-gnu.so`` in Python 3.8.
954+
939955
* The header files have been reorganized to better separate the different kinds
940956
of APIs:
941957

0 commit comments

Comments
 (0)