Kaydet (Commit) 9edd9f03 authored tarafından Éric Araujo's avatar Éric Araujo

Fix a few links in the table of built-in functions (#12298)

üst 8dad1876
...@@ -10,7 +10,7 @@ are always available. They are listed here in alphabetical order. ...@@ -10,7 +10,7 @@ are always available. They are listed here in alphabetical order.
=================== ================= ================== ================ ==================== =================== ================= ================== ================ ====================
.. .. Built-in Functions .. .. .. .. Built-in Functions .. ..
=================== ================= ================== ================ ==================== =================== ================= ================== ================ ====================
:func:`abs` :func:`dict` :func:`help` :func:`min` :func:`setattr` :func:`abs` |func-dict|_ :func:`help` :func:`min` :func:`setattr`
:func:`all` :func:`dir` :func:`hex` :func:`next` :func:`slice` :func:`all` :func:`dir` :func:`hex` :func:`next` :func:`slice`
:func:`any` :func:`divmod` :func:`id` :func:`object` :func:`sorted` :func:`any` :func:`divmod` :func:`id` :func:`object` :func:`sorted`
:func:`ascii` :func:`enumerate` :func:`input` :func:`oct` :func:`staticmethod` :func:`ascii` :func:`enumerate` :func:`input` :func:`oct` :func:`staticmethod`
...@@ -19,13 +19,22 @@ are always available. They are listed here in alphabetical order. ...@@ -19,13 +19,22 @@ are always available. They are listed here in alphabetical order.
:func:`bytearray` :func:`filter` :func:`issubclass` :func:`pow` :func:`super` :func:`bytearray` :func:`filter` :func:`issubclass` :func:`pow` :func:`super`
:func:`bytes` :func:`float` :func:`iter` :func:`print` :func:`tuple` :func:`bytes` :func:`float` :func:`iter` :func:`print` :func:`tuple`
:func:`callable` :func:`format` :func:`len` :func:`property` :func:`type` :func:`callable` :func:`format` :func:`len` :func:`property` :func:`type`
:func:`chr` :func:`frozenset` :func:`list` :func:`range` :func:`vars` :func:`chr` |func-frozenset|_ :func:`list` :func:`range` :func:`vars`
:func:`classmethod` :func:`getattr` :func:`locals` :func:`repr` :func:`zip` :func:`classmethod` :func:`getattr` :func:`locals` :func:`repr` :func:`zip`
:func:`compile` :func:`globals` :func:`map` :func:`reversed` :func:`__import__` :func:`compile` :func:`globals` :func:`map` :func:`reversed` :func:`__import__`
:func:`complex` :func:`hasattr` :func:`max` :func:`round` :func:`complex` :func:`hasattr` :func:`max` :func:`round`
:func:`delattr` :func:`hash` :func:`memoryview` :func:`set` :func:`delattr` :func:`hash` |func-memoryview|_ |func-set|_
=================== ================= ================== ================ ==================== =================== ================= ================== ================ ====================
.. using :func:`dict` would create a link to another page, so local targets are
used, with replacement texts to make the output in the table consistent
.. |func-dict| replace:: ``dict()``
.. |func-frozenset| replace:: ``frozenset()``
.. |func-memoryview| replace:: ``memoryview()``
.. |func-set| replace:: ``set()``
.. function:: abs(x) .. function:: abs(x)
Return the absolute value of a number. The argument may be an Return the absolute value of a number. The argument may be an
...@@ -248,6 +257,7 @@ are always available. They are listed here in alphabetical order. ...@@ -248,6 +257,7 @@ are always available. They are listed here in alphabetical order.
example, ``delattr(x, 'foobar')`` is equivalent to ``del x.foobar``. example, ``delattr(x, 'foobar')`` is equivalent to ``del x.foobar``.
.. _func-dict:
.. function:: dict([arg]) .. function:: dict([arg])
:noindex: :noindex:
...@@ -491,6 +501,7 @@ are always available. They are listed here in alphabetical order. ...@@ -491,6 +501,7 @@ are always available. They are listed here in alphabetical order.
The float type is described in :ref:`typesnumeric`. The float type is described in :ref:`typesnumeric`.
.. function:: format(value[, format_spec]) .. function:: format(value[, format_spec])
.. index:: .. index::
...@@ -511,6 +522,8 @@ are always available. They are listed here in alphabetical order. ...@@ -511,6 +522,8 @@ are always available. They are listed here in alphabetical order.
:exc:`TypeError` exception is raised if the method is not found or if either :exc:`TypeError` exception is raised if the method is not found or if either
the *format_spec* or the return value are not strings. the *format_spec* or the return value are not strings.
.. _func-frozenset:
.. function:: frozenset([iterable]) .. function:: frozenset([iterable])
:noindex: :noindex:
...@@ -717,6 +730,8 @@ are always available. They are listed here in alphabetical order. ...@@ -717,6 +730,8 @@ are always available. They are listed here in alphabetical order.
such as ``sorted(iterable, key=keyfunc, reverse=True)[0]`` and such as ``sorted(iterable, key=keyfunc, reverse=True)[0]`` and
``heapq.nlargest(1, iterable, key=keyfunc)``. ``heapq.nlargest(1, iterable, key=keyfunc)``.
.. _func-memoryview:
.. function:: memoryview(obj) .. function:: memoryview(obj)
:noindex: :noindex:
...@@ -1108,6 +1123,8 @@ are always available. They are listed here in alphabetical order. ...@@ -1108,6 +1123,8 @@ are always available. They are listed here in alphabetical order.
can't be represented exactly as a float. See :ref:`tut-fp-issues` for can't be represented exactly as a float. See :ref:`tut-fp-issues` for
more information. more information.
.. _func-set:
.. function:: set([iterable]) .. function:: set([iterable])
:noindex: :noindex:
......
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