]> granicus.if.org Git - python/commitdiff
Fix set representation in an example.
authorRaymond Hettinger <python@rcn.com>
Wed, 23 Mar 2011 05:57:49 +0000 (22:57 -0700)
committerRaymond Hettinger <python@rcn.com>
Wed, 23 Mar 2011 05:57:49 +0000 (22:57 -0700)
Doc/library/collections.rst

index c893e22093b5c4d58007d8025ca2dfb4a381090a..411d5f6832f8ee4376b479f6241f8cd0c16708e1 100644 (file)
@@ -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