gh-133879: Copyedit "What's New in Python 3.15" (#133880)

This commit is contained in:
Bénédikt Tran 2025-05-11 11:14:20 +02:00 committed by GitHub
parent 9b9cdb6440
commit 13cb8ca3da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -124,7 +124,7 @@ Removed
sysconfig sysconfig
--------- ---------
* The *check_home* parameter of :func:`sysconfig.is_python_build`. * Removed the *check_home* parameter of :func:`sysconfig.is_python_build`.
(Contributed by Filipe Laíns in :gh:`92897`.) (Contributed by Filipe Laíns in :gh:`92897`.)
@ -133,7 +133,7 @@ typing
* The undocumented keyword argument syntax for creating * The undocumented keyword argument syntax for creating
:class:`~typing.NamedTuple` classes (for example, :class:`~typing.NamedTuple` classes (for example,
``Point = NamedTuple("Point", x=int, y=int)``). ``Point = NamedTuple("Point", x=int, y=int)``) is no longer supported.
Use the class-based syntax or the functional syntax instead. Use the class-based syntax or the functional syntax instead.
(Contributed by Bénédikt Tran in :gh:`133817`.) (Contributed by Bénédikt Tran in :gh:`133817`.)
@ -204,6 +204,7 @@ Removed C APIs
* :c:func:`!PyImport_ImportModuleNoBlock`: deprecated alias * :c:func:`!PyImport_ImportModuleNoBlock`: deprecated alias
of :c:func:`PyImport_ImportModule`. of :c:func:`PyImport_ImportModule`.
(Contributed by Bénédikt Tran in :gh:`133644`.)
The following functions are removed in favor of :c:func:`PyConfig_Get`. The following functions are removed in favor of :c:func:`PyConfig_Get`.
The |pythoncapi_compat_project| can be used to get :c:func:`!PyConfig_Get` The |pythoncapi_compat_project| can be used to get :c:func:`!PyConfig_Get`
@ -236,6 +237,8 @@ on Python 3.13 and older.
use :c:func:`PyConfig_Get("home") <PyConfig_Get>` or the use :c:func:`PyConfig_Get("home") <PyConfig_Get>` or the
:envvar:`PYTHONHOME` environment variable instead. :envvar:`PYTHONHOME` environment variable instead.
(Contributed by Bénédikt Tran in :gh:`133644`.)
.. |pythoncapi_compat_project| replace:: |pythoncapi_compat_project_link|_ .. |pythoncapi_compat_project| replace:: |pythoncapi_compat_project_link|_
.. |pythoncapi_compat_project_link| replace:: pythoncapi-compat project .. |pythoncapi_compat_project_link| replace:: pythoncapi-compat project
.. _pythoncapi_compat_project_link: https://github.com/python/pythoncapi-compat .. _pythoncapi_compat_project_link: https://github.com/python/pythoncapi-compat