diff options
author | Raymond Hettinger <python@rcn.com> | 2011-03-23 05:57:49 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-03-23 05:57:49 (GMT) |
commit | ba7b560c1d3aca8dac21e824c7d4a11e7f584e76 (patch) | |
tree | b05b9e91154916b0d3805b10b62d84340744554c /Doc | |
parent | b2d0945c8783ab315520169c4bd4533ad82ad539 (diff) | |
download | cpython-ba7b560c1d3aca8dac21e824c7d4a11e7f584e76.zip cpython-ba7b560c1d3aca8dac21e824c7d4a11e7f584e76.tar.gz cpython-ba7b560c1d3aca8dac21e824c7d4a11e7f584e76.tar.bz2 |
Fix set representation in an example.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/collections.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index c893e22..411d5f6 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -661,7 +661,7 @@ Setting the :attr:`default_factory` to :class:`set` makes the ... d[k].add(v) ... >>> list(d.items()) - [('blue', set([2, 4])), ('red', set([1, 3]))] + [('blue', {2, 4}), ('red', {1, 3})] :func:`namedtuple` Factory Function for Tuples with Named Fields |