summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandro Tosi <sandro.tosi@gmail.com>2012-05-07 19:56:24 (GMT)
committerSandro Tosi <sandro.tosi@gmail.com>2012-05-07 19:56:24 (GMT)
commit1d710b6a84677ed3e19b97863893c61cfc1a75bb (patch)
treec60484dc0720df9b3f94c18b8353b6f3304d8130
parentc5288e60f3269f926e7284be4eb6467d90f66b40 (diff)
downloadcpython-1d710b6a84677ed3e19b97863893c61cfc1a75bb.zip
cpython-1d710b6a84677ed3e19b97863893c61cfc1a75bb.tar.gz
cpython-1d710b6a84677ed3e19b97863893c61cfc1a75bb.tar.bz2
backport 7a05cb3beddf to 2.7
-rw-r--r--Doc/library/functions.rst25
1 files changed, 19 insertions, 6 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 54711b8..f375558 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -18,16 +18,25 @@ available. They are listed here in alphabetical order.
:func:`bool` :func:`filter` :func:`len` :func:`range` :func:`type`
:func:`bytearray` :func:`float` :func:`list` :func:`raw_input` :func:`unichr`
:func:`callable` :func:`format` :func:`locals` :func:`reduce` :func:`unicode`
-:func:`chr` :func:`frozenset` :func:`long` :func:`reload` :func:`vars`
-:func:`classmethod` :func:`getattr` :func:`map` :func:`.repr` :func:`xrange`
+:func:`chr` |func-frozenset|_ :func:`long` :func:`reload` :func:`vars`
+:func:`classmethod` :func:`getattr` :func:`map` :func:`repr` :func:`xrange`
:func:`cmp` :func:`globals` :func:`max` :func:`reversed` :func:`zip`
-:func:`compile` :func:`hasattr` :func:`memoryview` :func:`round` :func:`__import__`
-:func:`complex` :func:`hash` :func:`min` :func:`set` :func:`apply`
+:func:`compile` :func:`hasattr` |func-memoryview|_ :func:`round` :func:`__import__`
+:func:`complex` :func:`hash` :func:`min` |func-set|_ :func:`apply`
:func:`delattr` :func:`help` :func:`next` :func:`setattr` :func:`buffer`
-:func:`dict` :func:`hex` :func:`object` :func:`slice` :func:`coerce`
+|func-dict|_ :func:`hex` :func:`object` :func:`slice` :func:`coerce`
:func:`dir` :func:`id` :func:`oct` :func:`sorted` :func:`intern`
=================== ================= ================== ================= ====================
+.. 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)
Return the absolute value of a number. The argument may be a plain or long
@@ -265,6 +274,7 @@ available. They are listed here in alphabetical order.
example, ``delattr(x, 'foobar')`` is equivalent to ``del x.foobar``.
+.. _func-dict:
.. function:: dict([arg])
:noindex:
@@ -513,6 +523,7 @@ available. They are listed here in alphabetical order.
.. versionadded:: 2.6
+.. _func-frozenset:
.. function:: frozenset([iterable])
:noindex:
@@ -752,7 +763,7 @@ available. They are listed here in alphabetical order.
.. versionchanged:: 2.5
Added support for the optional *key* argument.
-
+.. _func-memoryview:
.. function:: memoryview(obj)
:noindex:
@@ -1181,6 +1192,8 @@ available. They are listed here in alphabetical order.
can't be represented exactly as a float. See :ref:`tut-fp-issues` for
more information.
+
+.. _func-set:
.. function:: set([iterable])
:noindex: