]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] Change links to label refs (GH-98454) (#98726)
authorStanley <46876382+slateny@users.noreply.github.com>
Wed, 26 Oct 2022 20:19:39 +0000 (13:19 -0700)
committerGitHub <noreply@github.com>
Wed, 26 Oct 2022 20:19:39 +0000 (13:19 -0700)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Doc/howto/clinic.rst
Doc/reference/datamodel.rst
Doc/using/venv-create.inc
Doc/whatsnew/2.2.rst
Doc/whatsnew/3.6.rst
Doc/whatsnew/3.8.rst
Misc/NEWS.d/3.9.0a3.rst

index 5a5cbab61b65c61af14d68d72dda0a66212c9fb2..62ce28bd25f7b8e6496aafed515de0e6f34fd440 100644 (file)
@@ -1,5 +1,7 @@
 .. highlight:: c
 
+.. _howto-clinic:
+
 **********************
 Argument Clinic How-To
 **********************
index e92b9a2eaf4ea5ae3ea7e519191c4376cba7aae1..2be83d8dd15272aee28172083825d1e70b7bed1f 100644 (file)
@@ -1837,6 +1837,8 @@ Attribute lookup speed can be significantly improved as well.
    and *__weakref__* for each instance.
 
 
+.. _datamodel-note-slots:
+
 Notes on using *__slots__*
 """"""""""""""""""""""""""
 
index b929705648c56a3557a9f4a550fc781b7881b815..0422cd2e4e7650b376af6525318229cc4e208045 100644 (file)
@@ -16,8 +16,8 @@ re-used.
 
 .. deprecated:: 3.6
    ``pyvenv`` was the recommended tool for creating virtual environments for
-   Python 3.3 and 3.4, and is `deprecated in Python 3.6
-   <https://docs.python.org/dev/whatsnew/3.6.html#id8>`_.
+   Python 3.3 and 3.4, and is
+   :ref:`deprecated in Python 3.6 <whatsnew36-venv>`.
 
 .. versionchanged:: 3.5
    The use of ``venv`` is now recommended for creating virtual environments.
index 39997661bb96c4f29ae58cfed8db52dcce88110f..0c3bfda19339573c9e5986ff73085548b674ff52 100644 (file)
@@ -395,7 +395,7 @@ This section has just been a quick overview of the new features, giving enough
 of an explanation to start you programming, but many details have been
 simplified or ignored.  Where should you go to get a more complete picture?
 
-https://docs.python.org/dev/howto/descriptor.html is a lengthy tutorial introduction to
+The :ref:`descriptorhowto` is a lengthy tutorial introduction to
 the descriptor features, written by Guido van Rossum. If my description has
 whetted your appetite, go read this tutorial next, because it goes into much
 more detail about the new features while still remaining quite easy to read.
index cbde9395bd3bdb9db9b435f0a20502fb4b7897ed..f8f45a312ff894c60d8351d215ff66aa3bc0272c 100644 (file)
@@ -2052,6 +2052,8 @@ tkinter
 The :mod:`tkinter.tix` module is now deprecated.  :mod:`tkinter` users
 should use :mod:`tkinter.ttk` instead.
 
+.. _whatsnew36-venv:
+
 venv
 ~~~~
 
index 7f85ff3ffa9120b07d4953efe473075b0a9c59b8..4e2dbe3b539fa657ff9675fdd123a333c579b1ae 100644 (file)
@@ -122,8 +122,8 @@ Positional-only parameters
 There is a new function parameter syntax ``/`` to indicate that some
 function parameters must be specified positionally and cannot be used as
 keyword arguments.  This is the same notation shown by ``help()`` for C
-functions annotated with Larry Hastings' `Argument Clinic
-<https://docs.python.org/3/howto/clinic.html>`_ tool.
+functions annotated with Larry Hastings'
+:ref:`Argument Clinic <howto-clinic>` tool.
 
 In the following example, parameters *a* and *b* are positional-only,
 while *c* or *d* can be positional or keyword, and *e* or *f* are
index 77ccc7453c2157a520876759bc161b34fd716bdb..54b61ca3b7785f19bbc2c99d849ae8a05c819632 100644 (file)
@@ -805,8 +805,7 @@ event loop only if called from the main thread.
 .. section: Documentation
 
 Add an entry for ``__module__`` in the "function" & "method" sections of the
-`inspect docs types and members table
-<https://docs.python.org/3/library/inspect.html#types-and-members>`_
+:mod:`inspect` docs' :ref:`inspect-types` table.
 
 ..