[Python-checkins] cpython: Fix set representation in an example.
raymond.hettinger
python-checkins at python.org
Wed Mar 23 06:57:57 CET 2011
http://hg.python.org/cpython/rev/267578b2422d
changeset: 68868:267578b2422d
user: Raymond Hettinger <python at rcn.com>
date: Tue Mar 22 22:57:49 2011 -0700
summary:
Fix set representation in an example.
files:
Doc/library/collections.rst
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -661,7 +661,7 @@
... 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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list