summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-11-10 02:58:47 (GMT)
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-11-10 02:58:47 (GMT)
commitef3971d3e57ea8364a90581abb36c746a91f8001 (patch)
tree4f2f893e6b2a014645971986c5ca89adc52fe1ea /Doc
parent86b305341161b1e19eb6682944115da32b1fa101 (diff)
parent296c2fd065f3ad026dd7169d5fd323a0fee40b31 (diff)
downloadcpython-ef3971d3e57ea8364a90581abb36c746a91f8001.zip
cpython-ef3971d3e57ea8364a90581abb36c746a91f8001.tar.gz
cpython-ef3971d3e57ea8364a90581abb36c746a91f8001.tar.bz2
Merge from 3.3: adjust set and frozenset function docs (issue #16436).
Diffstat (limited to 'Doc')
-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 5885fe2..024ef0f 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -547,11 +547,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])
@@ -1170,8 +1172,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)