From c0ae0b9c28ebaba115a2ba951775a88d96879d8e Mon Sep 17 00:00:00 2001 From: Edison Abahurire Date: Sat, 13 Jun 2020 00:18:03 +0300 Subject: [PATCH 1/2] add links to sourcecode to library documentation --- Doc/library/2to3.rst | 4 ++++ Doc/library/asyncio-protocol.rst | 5 +++++ Doc/library/asyncio-task.rst | 6 ++++++ Doc/library/asyncio.rst | 2 ++ Doc/library/ctypes.rst | 2 ++ Doc/library/curses.ascii.rst | 2 ++ Doc/library/curses.panel.rst | 2 ++ Doc/library/curses.rst | 2 ++ Doc/library/distutils.rst | 2 ++ Doc/library/ensurepip.rst | 2 ++ Doc/library/formatter.rst | 2 ++ Doc/library/importlib.metadata.rst | 4 ++++ Doc/library/signal.rst | 2 ++ Doc/library/wsgiref.rst | 2 ++ 14 files changed, 39 insertions(+) diff --git a/Doc/library/2to3.rst b/Doc/library/2to3.rst index 1d7bd262872905..da5300e61faa68 100644 --- a/Doc/library/2to3.rst +++ b/Doc/library/2to3.rst @@ -5,6 +5,10 @@ .. sectionauthor:: Benjamin Peterson +**Source code:** :source:`Lib/lib2to3` + +-------------- + 2to3 is a Python program that reads Python 2.x source code and applies a series of *fixers* to transform it into valid Python 3.x code. The standard library contains a rich set of fixers that will handle almost all code. 2to3 supporting diff --git a/Doc/library/asyncio-protocol.rst b/Doc/library/asyncio-protocol.rst index 3079716f03ecc0..2215ffc17cfd98 100644 --- a/Doc/library/asyncio-protocol.rst +++ b/Doc/library/asyncio-protocol.rst @@ -8,6 +8,11 @@ Transports and Protocols ======================== +**Source code:** :source:`Lib/asyncio/protocols.py`, +:source:`Lib/asyncio/transports.py` + +------------------------------------ + .. rubric:: Preface Transports and Protocols are used by the **low-level** event loop diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index 21824ca537f77f..81a2d99c12c976 100644 --- a/Doc/library/asyncio-task.rst +++ b/Doc/library/asyncio-task.rst @@ -5,6 +5,12 @@ Coroutines and Tasks ==================== + +**Source code:** :source:`Lib/asyncio/coroutines.py`, +:source:`Lib/asyncio/tasks.py` + +------------------------------------ + This section outlines high-level asyncio APIs to work with coroutines and Tasks. diff --git a/Doc/library/asyncio.rst b/Doc/library/asyncio.rst index 94a853259d3483..15d18db50bd740 100644 --- a/Doc/library/asyncio.rst +++ b/Doc/library/asyncio.rst @@ -4,6 +4,8 @@ .. module:: asyncio :synopsis: Asynchronous I/O. +**Source code:** :source:`Lib/asyncio` + ------------------------------- .. sidebar:: Hello World! diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index 2d6c6d0a1c3c57..77958537699204 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -6,6 +6,8 @@ .. moduleauthor:: Thomas Heller +**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 a69dbb2ac06572..e1d1171927c9e2 100644 --- a/Doc/library/curses.ascii.rst +++ b/Doc/library/curses.ascii.rst @@ -7,6 +7,8 @@ .. moduleauthor:: Eric S. Raymond .. sectionauthor:: Eric S. Raymond +**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.panel.rst b/Doc/library/curses.panel.rst index d770c03c8375f4..0adddfb4a4a726 100644 --- a/Doc/library/curses.panel.rst +++ b/Doc/library/curses.panel.rst @@ -6,6 +6,8 @@ .. sectionauthor:: A.M. Kuchling +**Source code:** :source:`Lib/curses/panel.py` + -------------- Panels are windows with the added feature of depth, so they can be stacked on diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst index 1201e8972de63c..08705d6d60f1c5 100644 --- a/Doc/library/curses.rst +++ b/Doc/library/curses.rst @@ -9,6 +9,8 @@ .. sectionauthor:: Moshe Zadka .. sectionauthor:: Eric Raymond +**Source code:** :source:`Lib/curses` + -------------- The :mod:`curses` module provides an interface to the curses library, the diff --git a/Doc/library/distutils.rst b/Doc/library/distutils.rst index 62abc85ac397a4..cf2f9ad5ebcef4 100644 --- a/Doc/library/distutils.rst +++ b/Doc/library/distutils.rst @@ -7,6 +7,8 @@ .. sectionauthor:: Fred L. Drake, Jr. +**Source code:** :source:`Lib/distutils` + -------------- The :mod:`distutils` package provides support for building and installing diff --git a/Doc/library/ensurepip.rst b/Doc/library/ensurepip.rst index a5221250c40486..acd30a0078986c 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/formatter.rst b/Doc/library/formatter.rst index 6c10ac6fab50e4..920100fd117004 100644 --- a/Doc/library/formatter.rst +++ b/Doc/library/formatter.rst @@ -8,6 +8,8 @@ .. deprecated:: 3.4 Due to lack of usage, the formatter module has been deprecated. +**Source code:** :source:`Lib/formatter.py` + -------------- This module supports two interface definitions, each with multiple diff --git a/Doc/library/importlib.metadata.rst b/Doc/library/importlib.metadata.rst index 21da143f3bebf9..eede4a4ce73001 100644 --- a/Doc/library/importlib.metadata.rst +++ b/Doc/library/importlib.metadata.rst @@ -4,6 +4,10 @@ Using :mod:`!importlib.metadata` ================================= +**Source code:** :source:`Lib/importlib/metadata.py` + +-------------- + .. note:: This functionality is provisional and may deviate from the usual version semantics of the standard library. diff --git a/Doc/library/signal.rst b/Doc/library/signal.rst index 05b285ed110ec4..4b3ef07ce28b6b 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 1e30aa4a898c13..f1f1071a91c549 100644 --- a/Doc/library/wsgiref.rst +++ b/Doc/library/wsgiref.rst @@ -7,6 +7,8 @@ .. moduleauthor:: Phillip J. Eby .. sectionauthor:: Phillip J. Eby +**Source code:** :source:`Lib/wsgiref` + -------------- The Web Server Gateway Interface (WSGI) is a standard interface between web From fbe1d84d33c3c1b221e8087978fcbf131b09bcca Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Fri, 12 Jun 2020 21:23:27 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Documentation/2020-06-12-21-23-23.bpo-40896.mIMSEP.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Documentation/2020-06-12-21-23-23.bpo-40896.mIMSEP.rst diff --git a/Misc/NEWS.d/next/Documentation/2020-06-12-21-23-23.bpo-40896.mIMSEP.rst b/Misc/NEWS.d/next/Documentation/2020-06-12-21-23-23.bpo-40896.mIMSEP.rst new file mode 100644 index 00000000000000..f2fb0bf6d97224 --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2020-06-12-21-23-23.bpo-40896.mIMSEP.rst @@ -0,0 +1 @@ +Add links to Library source code to Documentation. Enhanced by Edison Abahurire. \ No newline at end of file