summaryrefslogtreecommitdiffstats
path: root/Doc/library/functions.rst
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-09-01 21:10:36 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-09-01 21:10:36 (GMT)
commit18ddf826e70ae8d8c9ad220148e7b4af95b56650 (patch)
tree4a7b6aeae359355dc826d6962607533c4e8fce37 /Doc/library/functions.rst
parent9edd9f035b9d90efbfeb5d35236a0934b106d522 (diff)
downloadcpython-18ddf826e70ae8d8c9ad220148e7b4af95b56650.zip
cpython-18ddf826e70ae8d8c9ad220148e7b4af95b56650.tar.gz
cpython-18ddf826e70ae8d8c9ad220148e7b4af95b56650.tar.bz2
Add links from library/functions to other docs.
Suggested by Terry J. Reedy in #12298.
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r--Doc/library/functions.rst13
1 files changed, 7 insertions, 6 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index f5d7629..4ed3ec5 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -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