summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-11-10 02:57:32 (GMT)
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-11-10 02:57:32 (GMT)
commitdf3abec2c98b84c3ec516857cb84bf3be9e0b773 (patch)
tree906011b6b5743393ed50d4734c841bdedc173e18
parent4ed4b1c7fe7caf4e7de97563fb27f28a1d26be7d (diff)
downloadcpython-df3abec2c98b84c3ec516857cb84bf3be9e0b773.zip
cpython-df3abec2c98b84c3ec516857cb84bf3be9e0b773.tar.gz
cpython-df3abec2c98b84c3ec516857cb84bf3be9e0b773.tar.bz2
Link set and frozenset function docs to their class definitions (issue #16436).
-rw-r--r--Doc/library/functions.rst19
1 files changed, 13 insertions, 6 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 31d8cf1..f9e0d0a 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -541,11 +541,13 @@ are always available. They are listed here in alphabetical order.
.. function:: frozenset([iterable])
:noindex:
- Return a frozenset object, optionally with elements taken from *iterable*.
- The frozenset type is described in :ref:`types-set`.
+ Return a new :class:`frozenset` object, optionally with elements taken from
+ *iterable*. ``frozenset`` is a built-in class. See :class:`frozenset` and
+ :ref:`types-set` for documentation about this class.
- For other containers see the built in :class:`dict`, :class:`list`, and
- :class:`tuple` classes, and the :mod:`collections` module.
+ For other containers see the built-in :class:`set`, :class:`list`,
+ :class:`tuple`, and :class:`dict` classes, as well as the :mod:`collections`
+ module.
.. function:: getattr(object, name[, default])
@@ -1167,8 +1169,13 @@ are always available. They are listed here in alphabetical order.
.. function:: set([iterable])
:noindex:
- Return a new set, optionally with elements taken from *iterable*.
- The set type is described in :ref:`types-set`.
+ Return a new :class:`set` object, optionally with elements taken from
+ *iterable*. ``set`` is a built-in class. See :class:`set` and
+ :ref:`types-set` for documentation about this class.
+
+ For other containers see the built-in :class:`frozenset`, :class:`list`,
+ :class:`tuple`, and :class:`dict` classes, as well as the :mod:`collections`
+ module.
.. function:: setattr(object, name, value)