Commit 67f089f8 authored by Chris Jerdonek's avatar Chris Jerdonek

Backport from 3.2: adjust set and frozenset function docs (issue #16436).

parent 8523db71
...@@ -533,11 +533,13 @@ available. They are listed here in alphabetical order. ...@@ -533,11 +533,13 @@ available. They are listed here in alphabetical order.
.. function:: frozenset([iterable]) .. function:: frozenset([iterable])
:noindex: :noindex:
Return a frozenset object, optionally with elements taken from *iterable*. Return a new :class:`frozenset` object, optionally with elements taken from
The frozenset type is described in :ref:`types-set`. *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 For other containers see the built-in :class:`set`, :class:`list`,
:class:`tuple` classes, and the :mod:`collections` module. :class:`tuple`, and :class:`dict` classes, as well as the :mod:`collections`
module.
.. versionadded:: 2.4 .. versionadded:: 2.4
...@@ -1225,11 +1227,13 @@ available. They are listed here in alphabetical order. ...@@ -1225,11 +1227,13 @@ available. They are listed here in alphabetical order.
.. function:: set([iterable]) .. function:: set([iterable])
:noindex: :noindex:
Return a new set, optionally with elements taken from *iterable*. Return a new :class:`set` object, optionally with elements taken from
The set type is described in :ref:`types-set`. *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:`dict`, :class:`list`, and For other containers see the built-in :class:`frozenset`, :class:`list`,
:class:`tuple` classes, and the :mod:`collections` module. :class:`tuple`, and :class:`dict` classes, as well as the :mod:`collections`
module.
.. versionadded:: 2.4 .. versionadded:: 2.4
......
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