summaryrefslogtreecommitdiffstats
path: root/Doc/library/collections.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2011-03-23 05:57:49 (GMT)
committerRaymond Hettinger <python@rcn.com>2011-03-23 05:57:49 (GMT)
commitba7b560c1d3aca8dac21e824c7d4a11e7f584e76 (patch)
treeb05b9e91154916b0d3805b10b62d84340744554c /Doc/library/collections.rst
parentb2d0945c8783ab315520169c4bd4533ad82ad539 (diff)
downloadcpython-ba7b560c1d3aca8dac21e824c7d4a11e7f584e76.zip
cpython-ba7b560c1d3aca8dac21e824c7d4a11e7f584e76.tar.gz
cpython-ba7b560c1d3aca8dac21e824c7d4a11e7f584e76.tar.bz2
Fix set representation in an example.
Diffstat (limited to 'Doc/library/collections.rst')
-rw-r--r--Doc/library/collections.rst2
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