[Python-checkins] r79175 - in python/branches/py3k: Doc/library/stdtypes.rst
georg.brandl
python-checkins at python.org
Sun Mar 21 10:10:32 CET 2010
Author: georg.brandl
Date: Sun Mar 21 10:10:32 2010
New Revision: 79175
Log:
Merged revisions 79172 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79172 | georg.brandl | 2010-03-21 10:08:00 +0100 (So, 21 Mär 2010) | 1 line
Add a paragraph about set displays.
........
Modified:
python/branches/py3k/ (props changed)
python/branches/py3k/Doc/library/stdtypes.rst
Modified: python/branches/py3k/Doc/library/stdtypes.rst
==============================================================================
--- python/branches/py3k/Doc/library/stdtypes.rst (original)
+++ python/branches/py3k/Doc/library/stdtypes.rst Sun Mar 21 10:10:32 2010
@@ -1704,6 +1704,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