From ba7b560c1d3aca8dac21e824c7d4a11e7f584e76 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Tue, 22 Mar 2011 22:57:49 -0700 Subject: [PATCH] Fix set representation in an example. --- Doc/library/collections.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index c893e22093b..411d5f6832f 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