diff options
author | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-10-13 10:25:18 (GMT) |
---|---|---|
committer | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-10-13 10:25:18 (GMT) |
commit | 39b867000b8eec1fb13f0eaff909eb9c9c971902 (patch) | |
tree | 74989d3ccc93b3e916ec5dccee36fea8f4ed9267 /Doc/library/functions.rst | |
parent | 006d907afc138a99869481c198eaf39a918df99d (diff) | |
parent | f341317185ef7ec6d0cfb2ca93c9d253c3c75305 (diff) | |
download | cpython-39b867000b8eec1fb13f0eaff909eb9c9c971902.zip cpython-39b867000b8eec1fb13f0eaff909eb9c9c971902.tar.gz cpython-39b867000b8eec1fb13f0eaff909eb9c9c971902.tar.bz2 |
Issue #16206: Merge dict documentation improvements from 3.2.
Improve the documentation of the dict constructor. This change includes
replacing the single-line signature documentation with a more complete
multiple-line signature.
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r-- | Doc/library/functions.rst | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index f782655..ae49cc2 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -271,14 +271,17 @@ are always available. They are listed here in alphabetical order. .. _func-dict: -.. function:: dict([arg]) +.. function:: dict(**kwarg) + dict(mapping, **kwarg) + dict(iterable, **kwarg) :noindex: - Create a new data dictionary, optionally with items taken from *arg*. - The dictionary type is described in :ref:`typesmapping`. + Create a new dictionary. The :class:`dict` object is the dictionary class. + See :class:`dict` and :ref:`typesmapping` for documentation about this + class. - For other containers see the built in :class:`list`, :class:`set`, and - :class:`tuple` classes, and the :mod:`collections` module. + For other containers see the built-in :class:`list`, :class:`set`, and + :class:`tuple` classes, as well as the :mod:`collections` module. .. function:: dir([object]) |