From 2e3743cd30090090073600cb05050a0e85327254 Mon Sep 17 00:00:00 2001 From: Andrew Kuchling Date: Wed, 19 Mar 2014 16:23:01 -0400 Subject: [PATCH] #13437: link to the source code for a few more modules --- Doc/library/code.rst | 2 +- Doc/library/codecs.rst | 2 +- Doc/library/configparser.rst | 2 ++ Doc/library/csv.rst | 1 + Doc/library/datetime.rst | 2 ++ Doc/library/decimal.rst | 3 ++- Doc/library/difflib.rst | 2 ++ 7 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Doc/library/code.rst b/Doc/library/code.rst index 5b5d7cc8c1a..99bdedc065e 100644 --- a/Doc/library/code.rst +++ b/Doc/library/code.rst @@ -4,6 +4,7 @@ .. module:: code :synopsis: Facilities to implement read-eval-print loops. +**Source code:** :source:`Lib/code.py` The ``code`` module provides facilities to implement read-eval-print loops in Python. Two classes and convenience functions are included which can be used to @@ -165,4 +166,3 @@ interpreter objects as well as the following additions. newline. When the user enters the EOF key sequence, :exc:`EOFError` is raised. The base implementation reads from ``sys.stdin``; a subclass may replace this with a different implementation. - diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst index 3729dac8ae5..36144e9ef23 100644 --- a/Doc/library/codecs.rst +++ b/Doc/library/codecs.rst @@ -7,6 +7,7 @@ .. sectionauthor:: Marc-André Lemburg .. sectionauthor:: Martin v. Löwis +**Source code:** :source:`Lib/codecs.py` .. index:: single: Unicode @@ -1418,4 +1419,3 @@ This module implements a variant of the UTF-8 codec: On encoding a UTF-8 encoded BOM will be prepended to the UTF-8 encoded bytes. For the stateful encoder this is only done once (on the first write to the byte stream). For decoding an optional UTF-8 encoded BOM at the start of the data will be skipped. - diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst index 024d27cb84d..bd6c36410ed 100644 --- a/Doc/library/configparser.rst +++ b/Doc/library/configparser.rst @@ -11,6 +11,8 @@ .. sectionauthor:: Christopher G. Petrilli .. sectionauthor:: Łukasz Langa +**Source code:** :source:`Lib/configparser.py` + .. index:: pair: .ini; file pair: configuration; file diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst index ccc9dc6e4cd..616df55ed0c 100644 --- a/Doc/library/csv.rst +++ b/Doc/library/csv.rst @@ -5,6 +5,7 @@ :synopsis: Write and read tabular data to and from delimited files. .. sectionauthor:: Skip Montanaro +**Source code:** :source:`Lib/csv.py` .. index:: single: csv diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index e4f1eb23017..f72b3154ca0 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -7,6 +7,8 @@ .. sectionauthor:: Tim Peters .. sectionauthor:: A.M. Kuchling +**Source code:** :source:`Lib/datetime.py` + .. XXX what order should the types be discussed in? The :mod:`datetime` module supplies classes for manipulating dates and times in diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst index 059ae7cb169..aa526db3e86 100644 --- a/Doc/library/decimal.rst +++ b/Doc/library/decimal.rst @@ -12,6 +12,8 @@ .. moduleauthor:: Stefan Krah .. sectionauthor:: Raymond D. Hettinger +**Source code:** :source:`Lib/decimal.py` + .. import modules for testing inline doctests with the Sphinx doctest builder .. testsetup:: * @@ -2092,4 +2094,3 @@ Alternatively, inputs can be rounded upon creation using the >>> Context(prec=5, rounding=ROUND_DOWN).create_decimal('1.2345678') Decimal('1.2345') - diff --git a/Doc/library/difflib.rst b/Doc/library/difflib.rst index 81dc0f16be3..913614d2e41 100644 --- a/Doc/library/difflib.rst +++ b/Doc/library/difflib.rst @@ -7,6 +7,8 @@ .. sectionauthor:: Tim Peters .. Markup by Fred L. Drake, Jr. +**Source code:** :source:`Lib/difflib.py` + .. testsetup:: import sys