Skip to content

Commit 1048094

Browse files
committed
Move source links to consistent location and remove wordy, big yellow boxes.
1 parent a4815ca commit 1048094

26 files changed

+37
-114
lines changed

Doc/library/ast.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
.. sectionauthor:: Martin v. Löwis <martin@v.loewis.de>
88
.. sectionauthor:: Georg Brandl <georg@python.org>
99

10+
**Source code:** :source:`Lib/ast.py`
1011

1112
The :mod:`ast` module helps Python applications to process trees of the Python
1213
abstract syntax grammar. The abstract syntax itself might change with each
@@ -19,9 +20,6 @@ helper provided in this module. The result will be a tree of objects whose
1920
classes all inherit from :class:`ast.AST`. An abstract syntax tree can be
2021
compiled into a Python code object using the built-in :func:`compile` function.
2122

22-
.. seealso::
23-
24-
Latest version of the :source:`ast module Python source code <Lib/ast.py>`
2523

2624
Node classes
2725
------------

Doc/library/bisect.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,15 @@
77
.. sectionauthor:: Raymond Hettinger <python at rcn.com>
88
.. example based on the PyModules FAQ entry by Aaron Watters <arw@pythonpros.com>
99
10+
**Source code:** :source:`Lib/bisect.py`
11+
1012
This module provides support for maintaining a list in sorted order without
1113
having to sort the list after each insertion. For long lists of items with
1214
expensive comparison operations, this can be an improvement over the more common
1315
approach. The module is called :mod:`bisect` because it uses a basic bisection
1416
algorithm to do its work. The source code may be most useful as a working
1517
example of the algorithm (the boundary conditions are already right!).
1618

17-
.. seealso::
18-
19-
Latest version of the :source:`bisect module Python source code
20-
<Lib/bisect.py>`
21-
2219
The following functions are provided:
2320

2421

Doc/library/calendar.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
of the Unix cal program.
77
.. sectionauthor:: Drew Csillag <drew_csillag@geocities.com>
88

9+
**Source code:** :source:`Lib/calendar.py`
910

1011
This module allows you to output calendars like the Unix :program:`cal` program,
1112
and provides additional useful functions related to the calendar. By default,
@@ -309,6 +310,3 @@ The :mod:`calendar` module exports the following data attributes:
309310

310311
Module :mod:`time`
311312
Low-level time related functions.
312-
313-
Latest version of the :source:`calendar module Python source code
314-
<Lib/calendar.py>`

Doc/library/cmd.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@
55
:synopsis: Build line-oriented command interpreters.
66
.. sectionauthor:: Eric S. Raymond <esr@snark.thyrsus.com>
77

8+
**Source code:** :source:`Lib/cmd.py`
89

910
The :class:`Cmd` class provides a simple framework for writing line-oriented
1011
command interpreters. These are often useful for test harnesses, administrative
1112
tools, and prototypes that will later be wrapped in a more sophisticated
1213
interface.
1314

14-
.. seealso::
15-
16-
Latest version of the :source:`cmd module Python source code <Lib/cmd.py>`
17-
1815
.. class:: Cmd(completekey='tab', stdin=None, stdout=None)
1916

2017
A :class:`Cmd` instance or subclass instance is a line-oriented interpreter

Doc/library/collections.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
import itertools
1313
__name__ = '<doctest>'
1414

15+
**Source code:** :source:`Lib/collections.py`
16+
1517
This module implements specialized container datatypes providing alternatives to
1618
Python's general purpose built-in containers, :class:`dict`, :class:`list`,
1719
:class:`set`, and :class:`tuple`.
@@ -31,11 +33,6 @@ In addition to the concrete container classes, the collections module provides
3133
:ref:`abstract-base-classes` that can be used to test whether a class provides a
3234
particular interface, for example, whether it is hashable or a mapping.
3335

34-
.. seealso::
35-
36-
Latest version of the :source:`collections module Python source code
37-
<Lib/collections.py>`
38-
3936

4037
:class:`Counter` objects
4138
------------------------

Doc/library/contextlib.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,12 @@
44
.. module:: contextlib
55
:synopsis: Utilities for with-statement contexts.
66

7+
**Source code:** :source:`Lib/contextlib.py`
78

89
This module provides utilities for common tasks involving the :keyword:`with`
910
statement. For more information see also :ref:`typecontextmanager` and
1011
:ref:`context-managers`.
1112

12-
.. seealso::
13-
14-
Latest version of the :source:`contextlib Python source code
15-
<Lib/contextlib.py>`
16-
1713
Functions provided:
1814

1915

Doc/library/dis.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,16 @@
44
.. module:: dis
55
:synopsis: Disassembler for Python bytecode.
66

7+
**Source code:** :source:`Lib/dis.py`
78

89
The :mod:`dis` module supports the analysis of CPython :term:`bytecode` by
910
disassembling it. The CPython bytecode which this module takes as an
1011
input is defined in the file :file:`Include/opcode.h` and used by the compiler
1112
and the interpreter.
1213

13-
.. seealso::
14-
15-
Latest version of the :source:`dis module Python source code <Lib/dis.py>`
16-
1714
.. impl-detail::
1815

19-
Bytecode is an implementation detail of the CPython interpreter! No
16+
Bytecode is an implementation detail of the CPython interpreter. No
2017
guarantees are made that bytecode will not be added, removed, or changed
2118
between versions of Python. Use of this module should not be considered to
2219
work across Python VMs or Python releases.

Doc/library/filecmp.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,12 @@
55
:synopsis: Compare files efficiently.
66
.. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il>
77

8+
**Source code:** :source:`Lib/filecmp.py`
89

910
The :mod:`filecmp` module defines functions to compare files and directories,
1011
with various optional time/correctness trade-offs. For comparing files,
1112
see also the :mod:`difflib` module.
1213

13-
.. seealso::
14-
15-
Latest version of the :source:`filecmp Python source code
16-
<Lib/filecmp.py>`
17-
1814
The :mod:`filecmp` module defines the following functions:
1915

2016

Doc/library/fileinput.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
.. moduleauthor:: Guido van Rossum <guido@python.org>
77
.. sectionauthor:: Fred L. Drake, Jr. <fdrake@acm.org>
88

9+
**Source code:** :source:`Lib/fileinput.py`
910

1011
This module implements a helper class and functions to quickly write a
1112
loop over standard input or a list of files. If you just want to read or
@@ -44,11 +45,6 @@ hook must be a function that takes two arguments, *filename* and *mode*, and
4445
returns an accordingly opened file-like object. Two useful hooks are already
4546
provided by this module.
4647

47-
.. seealso::
48-
49-
Latest version of the :source:`fileinput Python source code
50-
<Lib/fileinput.py>`
51-
5248
The following function is the primary interface of this module:
5349

5450

Doc/library/fnmatch.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
.. index:: module: re
1111

12+
**Source code:** :source:`Lib/fnmatch.py`
13+
1214
This module provides support for Unix shell-style wildcards, which are *not* the
1315
same as regular expressions (which are documented in the :mod:`re` module). The
1416
special characters used in shell-style wildcards are:
@@ -88,6 +90,3 @@ patterns.
8890

8991
Module :mod:`glob`
9092
Unix shell-style path expansion.
91-
92-
Latest version of the :source:`fnmatch Python source code
93-
<Lib/fnmatch.py>`

0 commit comments

Comments
 (0)