Commit ba7b560c authored by Raymond Hettinger's avatar Raymond Hettinger

Fix set representation in an example.

parent b2d0945c
...@@ -661,7 +661,7 @@ Setting the :attr:`default_factory` to :class:`set` makes the ...@@ -661,7 +661,7 @@ Setting the :attr:`default_factory` to :class:`set` makes the
... d[k].add(v) ... d[k].add(v)
... ...
>>> list(d.items()) >>> 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 :func:`namedtuple` Factory Function for Tuples with Named Fields
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment