]> granicus.if.org Git - python/commitdiff
Add links from library/functions to other docs.
authorÉric Araujo <merwok@netwok.org>
Thu, 1 Sep 2011 21:10:36 +0000 (23:10 +0200)
committerÉric Araujo <merwok@netwok.org>
Thu, 1 Sep 2011 21:10:36 +0000 (23:10 +0200)
Suggested by Terry J. Reedy in #12298.

Doc/library/functions.rst
Doc/library/stdtypes.rst

index f5d76298dbf479f7583ad3fd950ac6e940619945..4ed3ec5d97c0e7252949599b6a156d02cb7825d0 100644 (file)
@@ -83,11 +83,12 @@ are always available.  They are listed here in alphabetical order.
 
 .. function:: bool([x])
 
-   Convert a value to a Boolean, using the standard truth testing procedure.  If
-   *x* is false or omitted, this returns :const:`False`; otherwise it returns
-   :const:`True`. :class:`bool` is also a class, which is a subclass of
-   :class:`int`. Class :class:`bool` cannot be subclassed further.  Its only
-   instances are :const:`False` and :const:`True`.
+   Convert a value to a Boolean, using the standard :ref:`truth testing
+   procedure <truth>`.  If *x* is false or omitted, this returns ``False``;
+   otherwise it returns ``True``. :class:`bool` is also a class, which is a
+   subclass of :class:`int` (see :ref:`typesnumeric`).  Class :class:`bool`
+   cannot be subclassed further.  Its only instances are ``False`` and
+   ``True`` (see :ref:`bltin-boolean-values`).
 
    .. index:: pair: Boolean; type
 
@@ -1055,7 +1056,7 @@ are always available.  They are listed here in alphabetical order.
 
    Range objects implement the :class:`collections.Sequence` ABC, and provide
    features such as containment tests, element index lookup, slicing and
-   support for negative indices:
+   support for negative indices (see :ref:`typesseq`):
 
       >>> r = range(0, 20, 2)
       >>> r
index 2a9f6405c93feac08eb4cd37e6ef70cc2fe89d47..f98a5f11781b90db3465b0cac1ad8ca925872bbc 100644 (file)
@@ -2712,6 +2712,8 @@ special operations.  There is exactly one ellipsis object, named
 It is written as ``Ellipsis`` or ``...``.
 
 
+.. _bltin-notimplemented-object:
+
 The NotImplemented Object
 -------------------------
 
@@ -2722,6 +2724,8 @@ information.
 It is written as ``NotImplemented``.
 
 
+.. _bltin-boolean-values:
+
 Boolean Values
 --------------