Skip to content

Commit 5f86275

Browse files
slatenyCAM-Gerlach
andauthored
[3.11] Change links to label refs (GH-98454) (#98725)
Co-authored-by: C.A.M. Gerlach <[email protected]> (cherry picked from commit 268129a)
1 parent 78df56e commit 5f86275

File tree

9 files changed

+14
-9
lines changed

9 files changed

+14
-9
lines changed

Doc/howto/clinic.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.. highlight:: c
22

3+
.. _howto-clinic:
4+
35
**********************
46
Argument Clinic How-To
57
**********************

Doc/howto/isolating-extensions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ Module State Access from Slot Methods, Getters and Setters
461461

462462
.. After adding to limited API:
463463
464-
If you use the `limited API <https://docs.python.org/3/c-api/stable.html>__,
464+
If you use the :ref:`limited API <stable>,
465465
you must update ``Py_LIMITED_API`` to ``0x030b0000``, losing ABI
466466
compatibility with earlier versions.
467467

Doc/library/dataclasses.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ Module contents
191191
.. versionchanged:: 3.11
192192
If a field name is already included in the ``__slots__``
193193
of a base class, it will not be included in the generated ``__slots__``
194-
to prevent `overriding them <https://docs.python.org/3/reference/datamodel.html#notes-on-using-slots>`_.
194+
to prevent :ref:`overriding them <datamodel-note-slots>`.
195195
Therefore, do not use ``__slots__`` to retrieve the field names of a
196196
dataclass. Use :func:`fields` instead.
197197
To be able to determine inherited slots,

Doc/reference/datamodel.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1904,6 +1904,8 @@ Attribute lookup speed can be significantly improved as well.
19041904
and *__weakref__* for each instance.
19051905

19061906

1907+
.. _datamodel-note-slots:
1908+
19071909
Notes on using *__slots__*
19081910
""""""""""""""""""""""""""
19091911

Doc/using/venv-create.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ re-used.
1616
1717
.. deprecated:: 3.6
1818
``pyvenv`` was the recommended tool for creating virtual environments for
19-
Python 3.3 and 3.4, and is `deprecated in Python 3.6
20-
<https://docs.python.org/dev/whatsnew/3.6.html#id8>`_.
19+
Python 3.3 and 3.4, and is
20+
:ref:`deprecated in Python 3.6 <whatsnew36-venv>`.
2121
2222
.. versionchanged:: 3.5
2323
The use of ``venv`` is now recommended for creating virtual environments.

Doc/whatsnew/2.2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ This section has just been a quick overview of the new features, giving enough
395395
of an explanation to start you programming, but many details have been
396396
simplified or ignored. Where should you go to get a more complete picture?
397397

398-
https://docs.python.org/dev/howto/descriptor.html is a lengthy tutorial introduction to
398+
The :ref:`descriptorhowto` is a lengthy tutorial introduction to
399399
the descriptor features, written by Guido van Rossum. If my description has
400400
whetted your appetite, go read this tutorial next, because it goes into much
401401
more detail about the new features while still remaining quite easy to read.

Doc/whatsnew/3.6.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,6 +2052,8 @@ tkinter
20522052
The :mod:`tkinter.tix` module is now deprecated. :mod:`tkinter` users
20532053
should use :mod:`tkinter.ttk` instead.
20542054

2055+
.. _whatsnew36-venv:
2056+
20552057
venv
20562058
~~~~
20572059

Doc/whatsnew/3.8.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ Positional-only parameters
122122
There is a new function parameter syntax ``/`` to indicate that some
123123
function parameters must be specified positionally and cannot be used as
124124
keyword arguments. This is the same notation shown by ``help()`` for C
125-
functions annotated with Larry Hastings' `Argument Clinic
126-
<https://docs.python.org/3/howto/clinic.html>`_ tool.
125+
functions annotated with Larry Hastings'
126+
:ref:`Argument Clinic <howto-clinic>` tool.
127127

128128
In the following example, parameters *a* and *b* are positional-only,
129129
while *c* or *d* can be positional or keyword, and *e* or *f* are

Misc/NEWS.d/3.9.0a3.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -805,8 +805,7 @@ event loop only if called from the main thread.
805805
.. section: Documentation
806806
807807
Add an entry for ``__module__`` in the "function" & "method" sections of the
808-
`inspect docs types and members table
809-
<https://docs.python.org/3/library/inspect.html#types-and-members>`_
808+
:mod:`inspect` docs' :ref:`inspect-types` table.
810809

811810
..
812811

0 commit comments

Comments
 (0)