Kaydet (Commit) 18ddf826 authored tarafından Éric Araujo's avatar Éric Araujo

Add links from library/functions to other docs.

Suggested by Terry J. Reedy in #12298.
üst 9edd9f03
...@@ -83,11 +83,12 @@ are always available. They are listed here in alphabetical order. ...@@ -83,11 +83,12 @@ are always available. They are listed here in alphabetical order.
.. function:: bool([x]) .. function:: bool([x])
Convert a value to a Boolean, using the standard truth testing procedure. If Convert a value to a Boolean, using the standard :ref:`truth testing
*x* is false or omitted, this returns :const:`False`; otherwise it returns procedure <truth>`. If *x* is false or omitted, this returns ``False``;
:const:`True`. :class:`bool` is also a class, which is a subclass of otherwise it returns ``True``. :class:`bool` is also a class, which is a
:class:`int`. Class :class:`bool` cannot be subclassed further. Its only subclass of :class:`int` (see :ref:`typesnumeric`). Class :class:`bool`
instances are :const:`False` and :const:`True`. cannot be subclassed further. Its only instances are ``False`` and
``True`` (see :ref:`bltin-boolean-values`).
.. index:: pair: Boolean; type .. index:: pair: Boolean; type
...@@ -1055,7 +1056,7 @@ are always available. They are listed here in alphabetical order. ...@@ -1055,7 +1056,7 @@ are always available. They are listed here in alphabetical order.
Range objects implement the :class:`collections.Sequence` ABC, and provide Range objects implement the :class:`collections.Sequence` ABC, and provide
features such as containment tests, element index lookup, slicing and 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 = range(0, 20, 2)
>>> r >>> r
......
...@@ -2712,6 +2712,8 @@ special operations. There is exactly one ellipsis object, named ...@@ -2712,6 +2712,8 @@ special operations. There is exactly one ellipsis object, named
It is written as ``Ellipsis`` or ``...``. It is written as ``Ellipsis`` or ``...``.
.. _bltin-notimplemented-object:
The NotImplemented Object The NotImplemented Object
------------------------- -------------------------
...@@ -2722,6 +2724,8 @@ information. ...@@ -2722,6 +2724,8 @@ information.
It is written as ``NotImplemented``. It is written as ``NotImplemented``.
.. _bltin-boolean-values:
Boolean Values Boolean Values
-------------- --------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment