Skip to content

Commit d56835f

Browse files
miss-islingtonAA-Turnerhugovk
authored
[3.12] GH-109190: Copyedit 3.12 What's New: Use the :file: role (GH-109756) (#109806)
GH-109190: Copyedit 3.12 What's New: Use the ``:file:`` role (GH-109756) (cherry picked from commit 8d365b6) Co-authored-by: Adam Turner <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 6f1d455 commit d56835f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Doc/whatsnew/3.12.rst

+11-11
Original file line numberDiff line numberDiff line change
@@ -1584,7 +1584,7 @@ zipimport
15841584
Others
15851585
------
15861586

1587-
* Removed the ``suspicious`` rule from the documentation Makefile, and
1587+
* Removed the ``suspicious`` rule from the documentation :file:`Makefile`, and
15881588
removed ``Doc/tools/rstlint.py``, both in favor of `sphinx-lint
15891589
<https://github.com/sphinx-contrib/sphinx-lint>`_.
15901590
(Contributed by Julien Palard in :gh:`98179`.)
@@ -1711,9 +1711,9 @@ Changes in the Python API
17111711
Build Changes
17121712
=============
17131713

1714-
* Python no longer uses ``setup.py`` to build shared C extension modules.
1714+
* Python no longer uses :file:`setup.py` to build shared C extension modules.
17151715
Build parameters like headers and libraries are detected in ``configure``
1716-
script. Extensions are built by ``Makefile``. Most extensions use
1716+
script. Extensions are built by :file:`Makefile`. Most extensions use
17171717
``pkg-config`` and fall back to manual detection.
17181718
(Contributed by Christian Heimes in :gh:`93939`.)
17191719

@@ -1726,7 +1726,7 @@ Build Changes
17261726
if the Clang compiler accepts the flag.
17271727
(Contributed by Donghee Na in :gh:`89536`.)
17281728

1729-
* Add ``COMPILEALL_OPTS`` variable in Makefile to override :mod:`compileall`
1729+
* Add ``COMPILEALL_OPTS`` variable in :file:`Makefile` to override :mod:`compileall`
17301730
options (default: ``-j0``) in ``make install``. Also merged the 3
17311731
``compileall`` commands into a single command to build .pyc files for all
17321732
optimization levels (0, 1, 2) at once.
@@ -1895,7 +1895,7 @@ New Features
18951895
- ``SSTATE_INTERNED_IMMORTAL_STATIC`` An identifier for interned unicode
18961896
objects that are immortal and static
18971897
- ``sys.getunicodeinternedsize`` This returns the total number of unicode
1898-
objects that have been interned. This is now needed for refleak.py to
1898+
objects that have been interned. This is now needed for :file:`refleak.py` to
18991899
correctly track reference counts and allocated blocks
19001900

19011901
(Contributed by Eddie Elizondo in :gh:`84436`.)
@@ -2086,10 +2086,10 @@ Deprecated
20862086
* Creating immutable types (:c:macro:`Py_TPFLAGS_IMMUTABLETYPE`) with mutable
20872087
bases is deprecated and will be disabled in Python 3.14.
20882088

2089-
* The ``structmember.h`` header is deprecated, though it continues to be
2089+
* The :file:`structmember.h` header is deprecated, though it continues to be
20902090
available and there are no plans to remove it.
20912091

2092-
Its contents are now available just by including ``Python.h``,
2092+
Its contents are now available just by including :file:`Python.h`,
20932093
with a ``Py`` prefix added if it was missing:
20942094

20952095
- :c:struct:`PyMemberDef`, :c:func:`PyMember_GetOne` and
@@ -2099,14 +2099,14 @@ Deprecated
20992099
- The flags :c:macro:`Py_READONLY` (previously ``READONLY``) and
21002100
:c:macro:`Py_AUDIT_READ` (previously all uppercase)
21012101

2102-
Several items are not exposed from ``Python.h``:
2102+
Several items are not exposed from :file:`Python.h`:
21032103

21042104
- :c:macro:`T_OBJECT` (use :c:macro:`Py_T_OBJECT_EX`)
21052105
- :c:macro:`T_NONE` (previously undocumented, and pretty quirky)
21062106
- The macro ``WRITE_RESTRICTED`` which does nothing.
21072107
- The macros ``RESTRICTED`` and ``READ_RESTRICTED``, equivalents of
21082108
:c:macro:`Py_AUDIT_READ`.
2109-
- In some configurations, ``<stddef.h>`` is not included from ``Python.h``.
2109+
- In some configurations, ``<stddef.h>`` is not included from :file:`Python.h`.
21102110
It should be included manually when using ``offsetof()``.
21112111

21122112
The deprecated header continues to provide its original
@@ -2136,8 +2136,8 @@ Deprecated
21362136
Removed
21372137
-------
21382138

2139-
* Remove the ``token.h`` header file. There was never any public tokenizer C
2140-
API. The ``token.h`` header file was only designed to be used by Python
2139+
* Remove the :file:`token.h` header file. There was never any public tokenizer C
2140+
API. The :file:`token.h` header file was only designed to be used by Python
21412141
internals.
21422142
(Contributed by Victor Stinner in :gh:`92651`.)
21432143

0 commit comments

Comments
 (0)