Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Doc/library/sys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ always available.
On POSIX systems where Python was built with the standard ``configure``
script, this contains the ABI flags as specified by :pep:`3149`.

.. versionchanged:: 3.8
Default flags became an empty string (``m`` flag for pymalloc has been
removed).

.. versionadded:: 3.2


Expand Down
16 changes: 16 additions & 0 deletions Doc/whatsnew/3.8.rst
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,22 @@ Optimizations
Build and C API Changes
=======================

* Default :data:`sys.abiflags` became an empty string: the ``m`` flag for
pymalloc became useless (builds with and without pymalloc are ABI compatible)
and so has been removed. (Contributed by Victor Stinner in :issue:`36707`.)

Example of changes:

* Only ``python3.8`` program is installed, ``python3.8m`` program is gone.
* Only ``python3.8-config`` script is installed, ``python3.8m-config`` script
is gone.
* The ``m`` flag has been removed from the suffix of dynamic library
filenames: extension modules in the standard library as well as those
produced and installed by third-party packages, like those downloaded from
PyPI. On Linux, for example, the Python 3.7 suffix
``.cpython-37m-x86_64-linux-gnu.so`` became
``.cpython-38-x86_64-linux-gnu.so`` in Python 3.8.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should also be noted that this affects extension modules in the standard library as well as those produced and installed by third-party packages, like those downloaded from PyPI.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated my PR. Does it look better now?

* The header files have been reorganized to better separate the different kinds
of APIs:

Expand Down