Fix set representation in an example.

This commit is contained in:
Raymond Hettinger 2011-03-22 22:57:49 -07:00
parent b2d0945c87
commit ba7b560c1d
1 changed files with 1 additions and 1 deletions

View 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