aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-11-25 09:49:40 -0800
committerGitHub <noreply@github.com>2022-11-25 23:19:40 +0530
commit772fc6351674e6c1aec6a3eb9ee71e551f5ff722 (patch)
treef728cc418da3505486e7fc558f6a47c34e523a0a
parentbpo-38031: Fix a possible assertion failure in _io.FileIO() (GH-GH-5688) (diff)
downloadcpython-772fc6351674e6c1aec6a3eb9ee71e551f5ff722.tar.gz
cpython-772fc6351674e6c1aec6a3eb9ee71e551f5ff722.tar.bz2
cpython-772fc6351674e6c1aec6a3eb9ee71e551f5ff722.zip
[3.11] gh-85073: Add some missing links to source (GH-99363) (#99586)
gh-85073: Add some missing links to source (GH-99363) Add some missing links to source from Python docs (cherry picked from commit 27d8dc2c9d3de886a884f79f0621d4586c0e0f7a) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
-rw-r--r--Doc/library/asyncio-task.rst8
-rw-r--r--Doc/library/ctypes.rst2
-rw-r--r--Doc/library/curses.ascii.rst2
-rw-r--r--Doc/library/curses.rst2
-rw-r--r--Doc/library/ensurepip.rst2
-rw-r--r--Doc/library/signal.rst2
-rw-r--r--Doc/library/wsgiref.rst2
-rw-r--r--Doc/library/zoneinfo.rst2
8 files changed, 22 insertions, 0 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index f795f255259..bf922fae40a 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -18,6 +18,10 @@ and Tasks.
Coroutines
==========
+**Source code:** :source:`Lib/asyncio/coroutines.py`
+
+----------------------------------------------------
+
:term:`Coroutines <coroutine>` declared with the async/await syntax is the
preferred way of writing asyncio applications. For example, the following
snippet of code prints "hello", waits 1 second,
@@ -230,6 +234,10 @@ is :meth:`loop.run_in_executor`.
Creating Tasks
==============
+**Source code:** :source:`Lib/asyncio/tasks.py`
+
+-----------------------------------------------
+
.. function:: create_task(coro, *, name=None, context=None)
Wrap the *coro* :ref:`coroutine <coroutine>` into a :class:`Task`
diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst
index d97d01d265a..5208f254a5a 100644
--- a/Doc/library/ctypes.rst
+++ b/Doc/library/ctypes.rst
@@ -6,6 +6,8 @@
.. moduleauthor:: Thomas Heller <theller@python.net>
+**Source code:** :source:`Lib/ctypes`
+
--------------
:mod:`ctypes` is a foreign function library for Python. It provides C compatible
diff --git a/Doc/library/curses.ascii.rst b/Doc/library/curses.ascii.rst
index a69dbb2ac06..e1d1171927c 100644
--- a/Doc/library/curses.ascii.rst
+++ b/Doc/library/curses.ascii.rst
@@ -7,6 +7,8 @@
.. moduleauthor:: Eric S. Raymond <esr@thyrsus.com>
.. sectionauthor:: Eric S. Raymond <esr@thyrsus.com>
+**Source code:** :source:`Lib/curses/ascii.py`
+
--------------
The :mod:`curses.ascii` module supplies name constants for ASCII characters and
diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst
index 83e19fac652..9b2c3fbd8e4 100644
--- a/Doc/library/curses.rst
+++ b/Doc/library/curses.rst
@@ -9,6 +9,8 @@
.. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il>
.. sectionauthor:: Eric Raymond <esr@thyrsus.com>
+**Source code:** :source:`Lib/curses`
+
--------------
The :mod:`curses` module provides an interface to the curses library, the
diff --git a/Doc/library/ensurepip.rst b/Doc/library/ensurepip.rst
index 34f45e20bae..d7f89cf9636 100644
--- a/Doc/library/ensurepip.rst
+++ b/Doc/library/ensurepip.rst
@@ -7,6 +7,8 @@
.. versionadded:: 3.4
+**Source code:** :source:`Lib/ensurepip`
+
--------------
The :mod:`ensurepip` package provides support for bootstrapping the ``pip``
diff --git a/Doc/library/signal.rst b/Doc/library/signal.rst
index 6cca760583c..523d1ac5001 100644
--- a/Doc/library/signal.rst
+++ b/Doc/library/signal.rst
@@ -4,6 +4,8 @@
.. module:: signal
:synopsis: Set handlers for asynchronous events.
+**Source code:** :source:`Lib/signal.py`
+
--------------
This module provides mechanisms to use signal handlers in Python.
diff --git a/Doc/library/wsgiref.rst b/Doc/library/wsgiref.rst
index 06223e667a4..75dea466335 100644
--- a/Doc/library/wsgiref.rst
+++ b/Doc/library/wsgiref.rst
@@ -7,6 +7,8 @@
.. moduleauthor:: Phillip J. Eby <pje@telecommunity.com>
.. sectionauthor:: Phillip J. Eby <pje@telecommunity.com>
+**Source code:** :source:`Lib/wsgiref`
+
--------------
The Web Server Gateway Interface (WSGI) is a standard interface between web
diff --git a/Doc/library/zoneinfo.rst b/Doc/library/zoneinfo.rst
index 2f1879dc056..d2e5619e7e4 100644
--- a/Doc/library/zoneinfo.rst
+++ b/Doc/library/zoneinfo.rst
@@ -9,6 +9,8 @@
.. moduleauthor:: Paul Ganssle <paul@ganssle.io>
.. sectionauthor:: Paul Ganssle <paul@ganssle.io>
+**Source code:** :source:`Lib/zoneinfo`
+
--------------
The :mod:`zoneinfo` module provides a concrete time zone implementation to