Add more links to Python sources where the code is short, readable and an informative adjunct to the docs.
diff --git a/Doc/library/atexit.rst b/Doc/library/atexit.rst
index 8b33d5c..8d5bbab 100644
--- a/Doc/library/atexit.rst
+++ b/Doc/library/atexit.rst
@@ -14,6 +14,11 @@
functions. Functions thus registered are automatically executed upon normal
interpreter termination.
+.. seealso::
+
+ Latest version of the `atexit Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/atexit.py?view=markup>`_
+
Note: the functions registered via this module are not called when the program
is killed by a signal, when a Python fatal internal error is detected, or when
:func:`os._exit` is called.
diff --git a/Doc/library/bisect.rst b/Doc/library/bisect.rst
index c566216..48cb331 100644
--- a/Doc/library/bisect.rst
+++ b/Doc/library/bisect.rst
@@ -16,6 +16,11 @@
.. versionadded:: 2.1
+.. seealso::
+
+ Latest version of the `bisect module Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/bisect.py?view=markup>`_
+
The following functions are provided:
diff --git a/Doc/library/cmd.rst b/Doc/library/cmd.rst
index cc49990..b35373c 100644
--- a/Doc/library/cmd.rst
+++ b/Doc/library/cmd.rst
@@ -12,6 +12,10 @@
tools, and prototypes that will later be wrapped in a more sophisticated
interface.
+.. seealso::
+
+ Latest version of the `cmd module Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/cmd.py?view=markup>`_
.. class:: Cmd([completekey[, stdin[, stdout]]])
diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst
index 3005bd0..c435082 100644
--- a/Doc/library/contextlib.rst
+++ b/Doc/library/contextlib.rst
@@ -11,6 +11,11 @@
statement. For more information see also :ref:`typecontextmanager` and
:ref:`context-managers`.
+.. seealso::
+
+ Latest version of the `contextlib Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/contextlib.py?view=markup>`_
+
Functions provided:
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index 95edac9..ac8d653 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -11,6 +11,11 @@
input is defined in the file :file:`Include/opcode.h` and used by the compiler
and the interpreter.
+.. seealso::
+
+ Latest version of the `dis module Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/dis.py?view=markup>`_
+
.. impl-detail::
Bytecode is an implementation detail of the CPython interpreter! No
diff --git a/Doc/library/filecmp.rst b/Doc/library/filecmp.rst
index 11d74ba..699e510 100644
--- a/Doc/library/filecmp.rst
+++ b/Doc/library/filecmp.rst
@@ -11,6 +11,11 @@
with various optional time/correctness trade-offs. For comparing files,
see also the :mod:`difflib` module.
+.. seealso::
+
+ Latest version of the `filecmp Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/filecmp.py?view=markup>`_
+
The :mod:`filecmp` module defines the following functions:
diff --git a/Doc/library/fileinput.rst b/Doc/library/fileinput.rst
index ffd109c..709237e 100644
--- a/Doc/library/fileinput.rst
+++ b/Doc/library/fileinput.rst
@@ -44,6 +44,11 @@
returns an accordingly opened file-like object. Two useful hooks are already
provided by this module.
+.. seealso::
+
+ Latest version of the `fileinput Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/fileinput.py?view=markup>`_
+
The following function is the primary interface of this module:
diff --git a/Doc/library/fnmatch.rst b/Doc/library/fnmatch.rst
index 3d41726..cb1fa10 100644
--- a/Doc/library/fnmatch.rst
+++ b/Doc/library/fnmatch.rst
@@ -34,6 +34,10 @@
a period are not special for this module, and are matched by the ``*`` and ``?``
patterns.
+.. seealso::
+
+ Latest version of the `fnmatch Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/fnmatch.py?view=markup>`_
.. function:: fnmatch(filename, pattern)
diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst
index 0c5e57b..787c000 100644
--- a/Doc/library/functools.rst
+++ b/Doc/library/functools.rst
@@ -15,6 +15,11 @@
or return other functions. In general, any callable object can be treated as a
function for the purposes of this module.
+.. seealso::
+
+ Latest version of the `functools Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/functools.py?view=markup>`_
+
The :mod:`functools` module defines the following functions:
.. function:: cmp_to_key(func)
diff --git a/Doc/library/glob.rst b/Doc/library/glob.rst
index 5f28480..1ef9a31 100644
--- a/Doc/library/glob.rst
+++ b/Doc/library/glob.rst
@@ -16,6 +16,10 @@
subshell. (For tilde and shell variable expansion, use
:func:`os.path.expanduser` and :func:`os.path.expandvars`.)
+.. seealso::
+
+ Latest version of the `glob module Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/glob.py?view=markup>`_
.. function:: glob(pathname)
diff --git a/Doc/library/heapq.rst b/Doc/library/heapq.rst
index 6c0e467..b46bd82 100644
--- a/Doc/library/heapq.rst
+++ b/Doc/library/heapq.rst
@@ -13,6 +13,11 @@
This module provides an implementation of the heap queue algorithm, also known
as the priority queue algorithm.
+.. seealso::
+
+ Latest version of the `heapq Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/heapq.py?view=markup>`_
+
Heaps are arrays for which ``heap[k] <= heap[2*k+1]`` and ``heap[k] <=
heap[2*k+2]`` for all *k*, counting elements from zero. For the sake of
comparison, non-existing elements are considered to be infinite. The
diff --git a/Doc/library/keyword.rst b/Doc/library/keyword.rst
index 32a2d34..3b69d0b 100644
--- a/Doc/library/keyword.rst
+++ b/Doc/library/keyword.rst
@@ -20,3 +20,8 @@
keywords are defined to only be active when particular :mod:`__future__`
statements are in effect, these will be included as well.
+
+.. seealso::
+
+ Latest version of the `keyword module Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/keyword.py?view=markup>`_
diff --git a/Doc/library/linecache.rst b/Doc/library/linecache.rst
index 5c1ad86..8ebee05 100644
--- a/Doc/library/linecache.rst
+++ b/Doc/library/linecache.rst
@@ -12,6 +12,11 @@
lines are read from a single file. This is used by the :mod:`traceback` module
to retrieve source lines for inclusion in the formatted traceback.
+.. seealso::
+
+ Latest version of the `linecache module Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/linecache.py?view=markup>`_
+
The :mod:`linecache` module defines the following functions:
diff --git a/Doc/library/pprint.rst b/Doc/library/pprint.rst
index 36a2bc4..7f13029 100644
--- a/Doc/library/pprint.rst
+++ b/Doc/library/pprint.rst
@@ -28,6 +28,11 @@
.. versionchanged:: 2.6
Added support for :class:`set` and :class:`frozenset`.
+.. seealso::
+
+ Latest version of the `pprint module Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/pprint.py?view=markup>`_
+
The :mod:`pprint` module defines one class:
.. First the implementation class:
diff --git a/Doc/library/quopri.rst b/Doc/library/quopri.rst
index f4674dc..87d70c3 100644
--- a/Doc/library/quopri.rst
+++ b/Doc/library/quopri.rst
@@ -18,6 +18,10 @@
:mod:`base64` module is more compact if there are many such characters, as when
sending a graphics file.
+.. seealso::
+
+ Latest version of the `quopri module Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/quopri.py?view=markup>`_
.. function:: decode(input, output[,header])
diff --git a/Doc/library/repr.rst b/Doc/library/repr.rst
index 78284f0..5bf5bf2 100644
--- a/Doc/library/repr.rst
+++ b/Doc/library/repr.rst
@@ -15,6 +15,11 @@
with limits on the size of the resulting strings. This is used in the Python
debugger and may be useful in other contexts as well.
+.. seealso::
+
+ Latest version of the `repr module Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/repr.py?view=markup>`_
+
This module provides a class, an instance, and a function:
diff --git a/Doc/library/sched.rst b/Doc/library/sched.rst
index 51b9d3f..1efe47a 100644
--- a/Doc/library/sched.rst
+++ b/Doc/library/sched.rst
@@ -10,6 +10,10 @@
The :mod:`sched` module defines a class which implements a general purpose event
scheduler:
+.. seealso::
+
+ Latest version of the `sched module Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/sched.py?view=markup>`_
.. class:: scheduler(timefunc, delayfunc)
diff --git a/Doc/library/shelve.rst b/Doc/library/shelve.rst
index c0bcb80..3616724 100644
--- a/Doc/library/shelve.rst
+++ b/Doc/library/shelve.rst
@@ -13,6 +13,10 @@
This includes most class instances, recursive data types, and objects containing
lots of shared sub-objects. The keys are ordinary strings.
+.. seealso::
+
+ Latest version of the `shelve module Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/shelve.py?view=markup>`_
.. function:: open(filename[, flag='c'[, protocol=None[, writeback=False]]])
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst
index 0b343d4..1b160d8 100644
--- a/Doc/library/shutil.rst
+++ b/Doc/library/shutil.rst
@@ -16,6 +16,11 @@
copying and removal. For operations on individual files, see also the
:mod:`os` module.
+.. seealso::
+
+ Latest version of the `shutil module Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/shutil.py?view=markup>`_
+
.. warning::
Even the higher-level file copying functions (:func:`copy`, :func:`copy2`)
@@ -27,6 +32,7 @@
not be correct. On Windows, file owners, ACLs and alternate data streams
are not copied.
+
Directory and files operations
------------------------------
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index 65dd625..bcbc31e 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -17,6 +17,11 @@
:ref:`string-formatting` section. Also, see the :mod:`re` module for
string functions based on regular expressions.
+.. seealso::
+
+ Latest version of the `string module Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/string.py?view=markup>`_
+
String constants
----------------
diff --git a/Doc/library/tokenize.rst b/Doc/library/tokenize.rst
index 36f5838..2a7dea1 100644
--- a/Doc/library/tokenize.rst
+++ b/Doc/library/tokenize.rst
@@ -13,6 +13,11 @@
well, making it useful for implementing "pretty-printers," including colorizers
for on-screen displays.
+.. seealso::
+
+ Latest version of the `tokenize module Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/tokenize.py?view=markup>`_
+
The primary entry point is a :term:`generator`:
.. function:: generate_tokens(readline)
diff --git a/Doc/library/trace.rst b/Doc/library/trace.rst
index f79d7e5..1bc37fd 100644
--- a/Doc/library/trace.rst
+++ b/Doc/library/trace.rst
@@ -11,6 +11,10 @@
list functions executed during a program run. It can be used in another program
or from the command line.
+.. seealso::
+
+ Latest version of the `trace module Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/trace.py?view=markup>`_
.. _trace-cli:
diff --git a/Doc/library/urlparse.rst b/Doc/library/urlparse.rst
index f3730e3..26d422f 100644
--- a/Doc/library/urlparse.rst
+++ b/Doc/library/urlparse.rst
@@ -33,6 +33,11 @@
.. versionadded:: 2.5
Support for the ``sftp`` and ``sips`` schemes.
+.. seealso::
+
+ Latest version of the `urlparse module Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/urlparse.py?view=markup>`_
+
The :mod:`urlparse` module defines the following functions:
diff --git a/Doc/library/uu.rst b/Doc/library/uu.rst
index e2303c3..fa1477b 100644
--- a/Doc/library/uu.rst
+++ b/Doc/library/uu.rst
@@ -22,6 +22,11 @@
This code was contributed by Lance Ellinghouse, and modified by Jack Jansen.
+.. seealso::
+
+ Latest version of the `uu module Python source code
+ <http://svn.python.org/view/python/branches/release27-maint/Lib/uu.py?view=markup>`_
+
The :mod:`uu` module defines the following functions: