mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Fix set representation in an example.
This commit is contained in:
parent
b2d0945c87
commit
ba7b560c1d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue