From: Raymond Hettinger Date: Wed, 23 Mar 2011 05:57:49 +0000 (-0700) Subject: Fix set representation in an example. X-Git-Tag: v3.3.0a1~2783 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba7b560c1d3aca8dac21e824c7d4a11e7f584e76;p=thirdparty%2FPython%2Fcpython.git Fix set representation in an example. --- diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index c893e22093b5..411d5f6832f8 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