From 1cf0522f26c3c40e6d786f38db220197558a973a Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 5 Feb 2008 12:01:24 +0000 Subject: [PATCH] Convert external links to internal links. Fixes #2010. --- Doc/howto/advocacy.rst | 2 +- Doc/howto/curses.rst | 2 ++ Doc/howto/regex.rst | 2 ++ Doc/howto/unicode.rst | 2 +- Doc/library/curses.rst | 4 ++-- Doc/library/re.rst | 3 +-- 6 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Doc/howto/advocacy.rst b/Doc/howto/advocacy.rst index 7d7706e600..669ce72a15 100644 --- a/Doc/howto/advocacy.rst +++ b/Doc/howto/advocacy.rst @@ -265,7 +265,7 @@ the organizations that use Python. **What are the restrictions on Python's use?** They're practically nonexistent. Consult the :file:`Misc/COPYRIGHT` file in the -source distribution, or http://www.python.org/doc/Copyright.html for the full +source distribution, or the section :ref:`history-and-license` for the full language, but it boils down to three conditions. * You have to leave the copyright notice on the software; if you don't include diff --git a/Doc/howto/curses.rst b/Doc/howto/curses.rst index 2953d36742..9cbc827d8e 100644 --- a/Doc/howto/curses.rst +++ b/Doc/howto/curses.rst @@ -1,3 +1,5 @@ +.. _curses-howto: + ********************************** Curses Programming with Python ********************************** diff --git a/Doc/howto/regex.rst b/Doc/howto/regex.rst index cfcae31174..cf787e8e91 100644 --- a/Doc/howto/regex.rst +++ b/Doc/howto/regex.rst @@ -1,3 +1,5 @@ +.. _regex-howto: + **************************** Regular Expression HOWTO **************************** diff --git a/Doc/howto/unicode.rst b/Doc/howto/unicode.rst index 16bd5a8a2f..fb84df70b0 100644 --- a/Doc/howto/unicode.rst +++ b/Doc/howto/unicode.rst @@ -277,7 +277,7 @@ Unicode result). The following examples show the differences:: Encodings are specified as strings containing the encoding's name. Python 2.4 comes with roughly 100 different encodings; see the Python Library Reference at - for a list. Some encodings +:ref:`standard-encodings` for a list. Some encodings have multiple names; for example, 'latin-1', 'iso_8859_1' and '8859' are all synonyms for the same encoding. diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst index 836a77507d..7e5090a0e5 100644 --- a/Doc/library/curses.rst +++ b/Doc/library/curses.rst @@ -48,9 +48,9 @@ Linux and the BSD variants of Unix. Convenience function to ensure proper terminal setup and resetting on application entry and exit. - `Curses Programming with Python `_ + :ref:`curses-howto` Tutorial material on using curses with Python, by Andrew Kuchling and Eric - Raymond, is available on the Python Web site. + Raymond. The :file:`Demo/curses/` directory in the Python source distribution contains some example programs using the curses bindings provided by this module. diff --git a/Doc/library/re.rst b/Doc/library/re.rst index dd228356ec..5fd3dd5d8c 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -65,8 +65,7 @@ and implementation of regular expressions, consult the Friedl book referenced above, or almost any textbook about compiler construction. A brief explanation of the format of regular expressions follows. For further -information and a gentler presentation, consult the Regular Expression HOWTO, -accessible from http://www.python.org/doc/howto/. +information and a gentler presentation, consult the :ref:`regex-howto`. Regular expressions can contain both special and ordinary characters. Most ordinary characters, like ``'A'``, ``'a'``, or ``'0'``, are the simplest regular -- 2.40.0