--- c:\cpython\doc\library\stdtypes.rst 2015-03-11T21:08:46.520956+00:00 +++ stdtypes.rst 2015-03-17T23:18:48.336621+00:00 @@ -3708,7 +3708,8 @@ 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 within braces, for example: ``{'jack', 'sjoerd'}``, in addition to the +of elements within braces, for example: ``{'jack', 'sjoerd'}``, by using a set +comprehension, for example ``{x for x in iterable}``, in addition to the :class:`set` constructor. The constructors for both classes work the same: @@ -3907,7 +3908,8 @@ Dictionaries can be created by placing a comma-separated list of ``key: value`` pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098: -'jack', 4127: 'sjoerd'}``, or by the :class:`dict` constructor. +'jack', 4127: 'sjoerd'}``, by a dict comprehension, for example: +``{x: x**2 for x in iterable}`` or by the :class:`dict` constructor. .. class:: dict(**kwarg) dict(mapping, **kwarg)