[Python-checkins] r79172 - python/trunk/Doc/library/stdtypes.rst
georg.brandl
python-checkins at python.org
Sun Mar 21 10:08:00 CET 2010
Author: georg.brandl
Date: Sun Mar 21 10:08:00 2010
New Revision: 79172
Log:
Add a paragraph about set displays.
Modified:
python/trunk/Doc/library/stdtypes.rst
Modified: python/trunk/Doc/library/stdtypes.rst
==============================================================================
--- python/trunk/Doc/library/stdtypes.rst (original)
+++ python/trunk/Doc/library/stdtypes.rst Sun Mar 21 10:08:00 2010
@@ -1672,6 +1672,10 @@
altered after it is created; it can therefore be used as a dictionary key or as
an element of another set.
+Non-empty sets (not frozensets) can be created by placing a comma-separated list
+of elements pairs within braces, for example: ``{'jack', 'sjoerd'}``, in
+addition to the :class:`set` constructor.
+
The constructors for both classes work the same:
.. class:: set([iterable])
More information about the Python-checkins
mailing list