[Python-checkins] cpython (3.2): Add a few missing source links from 2.7 and harmonize lib docs headers
eric.araujo
python-checkins at python.org
Fri Aug 19 14:25:16 CEST 2011
http://hg.python.org/cpython/rev/3bbb1a3eca01
changeset: 71926:3bbb1a3eca01
branch: 3.2
user: Éric Araujo <merwok at netwok.org>
date: Fri Aug 19 00:49:18 2011 +0200
summary:
Add a few missing source links from 2.7 and harmonize lib docs headers
files:
Doc/library/argparse.rst | 4 ++--
Doc/library/atexit.rst | 3 +++
Doc/library/concurrent.futures.rst | 4 ++--
Doc/library/optparse.rst | 9 +++++----
Doc/library/string.rst | 6 +++---
Doc/library/sysconfig.rst | 9 +++++----
Doc/library/urllib.parse.rst | 4 ++++
7 files changed, 24 insertions(+), 15 deletions(-)
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -6,10 +6,10 @@
.. moduleauthor:: Steven Bethard <steven.bethard at gmail.com>
.. sectionauthor:: Steven Bethard <steven.bethard at gmail.com>
+.. versionadded:: 3.2
+
**Source code:** :source:`Lib/argparse.py`
-.. versionadded:: 3.2
-
--------------
The :mod:`argparse` module makes it easy to write user-friendly command-line
diff --git a/Doc/library/atexit.rst b/Doc/library/atexit.rst
--- a/Doc/library/atexit.rst
+++ b/Doc/library/atexit.rst
@@ -6,6 +6,9 @@
.. moduleauthor:: Skip Montanaro <skip at pobox.com>
.. sectionauthor:: Skip Montanaro <skip at pobox.com>
+**Source code:** :source:`Lib/atexit.py`
+
+--------------
The :mod:`atexit` module defines functions to register and unregister cleanup
functions. Functions thus registered are automatically executed upon normal
diff --git a/Doc/library/concurrent.futures.rst b/Doc/library/concurrent.futures.rst
--- a/Doc/library/concurrent.futures.rst
+++ b/Doc/library/concurrent.futures.rst
@@ -4,11 +4,11 @@
.. module:: concurrent.futures
:synopsis: Execute computations concurrently using threads or processes.
+.. versionadded:: 3.2
+
**Source code:** :source:`Lib/concurrent/futures/thread.py`
and :source:`Lib/concurrent/futures/process.py`
-.. versionadded:: 3.2
-
--------------
The :mod:`concurrent.futures` module provides a high-level interface for
diff --git a/Doc/library/optparse.rst b/Doc/library/optparse.rst
--- a/Doc/library/optparse.rst
+++ b/Doc/library/optparse.rst
@@ -7,14 +7,14 @@
.. moduleauthor:: Greg Ward <gward at python.net>
.. sectionauthor:: Greg Ward <gward at python.net>
-**Source code:** :source:`Lib/optparse.py`
-
---------------
-
-.. deprecated:: 2.7
+.. deprecated:: 3.2
The :mod:`optparse` module is deprecated and will not be developed further;
development will continue with the :mod:`argparse` module.
+**Source code:** :source:`Lib/optparse.py`
+
+--------------
+
:mod:`optparse` is a more convenient, flexible, and powerful library for parsing
command-line options than the old :mod:`getopt` module. :mod:`optparse` uses a
more declarative style of command-line parsing: you create an instance of
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -4,6 +4,9 @@
.. module:: string
:synopsis: Common string operations.
+**Source code:** :source:`Lib/string.py`
+
+--------------
.. seealso::
@@ -11,10 +14,6 @@
:ref:`string-methods`
-**Source code:** :source:`Lib/string.py`
-
---------------
-
String constants
----------------
diff --git a/Doc/library/sysconfig.rst b/Doc/library/sysconfig.rst
--- a/Doc/library/sysconfig.rst
+++ b/Doc/library/sysconfig.rst
@@ -3,15 +3,16 @@
.. module:: sysconfig
:synopsis: Python's configuration information
-.. moduleauthor:: Tarek Ziade <tarek at ziade.org>
-.. sectionauthor:: Tarek Ziade <tarek at ziade.org>
+.. moduleauthor:: Tarek Ziadé <tarek at ziade.org>
+.. sectionauthor:: Tarek Ziadé <tarek at ziade.org>
+
.. index::
single: configuration information
+.. versionadded:: 3.2
+
**Source code:** :source:`Lib/sysconfig.py`
-.. versionadded:: 3.2
-
--------------
The :mod:`sysconfig` module provides access to Python's configuration
diff --git a/Doc/library/urllib.parse.rst b/Doc/library/urllib.parse.rst
--- a/Doc/library/urllib.parse.rst
+++ b/Doc/library/urllib.parse.rst
@@ -12,6 +12,10 @@
pair: URL; parsing
pair: relative; URL
+**Source code:** :source:`Lib/urllib/parse.py`
+
+--------------
+
This module defines a standard interface to break Uniform Resource Locator (URL)
strings up in components (addressing scheme, network location, path etc.), to
combine the components back into a URL string, and to convert a "relative URL"
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list