There was an error while loading. Please reload this page.
1 parent 38ce104 commit b11e749Copy full SHA for b11e749
1 file changed
Doc/library/ast.rst
@@ -806,8 +806,11 @@ Comprehensions
806
List and set comprehensions, generator expressions, and dictionary
807
comprehensions. ``elt`` (or ``key`` and ``value``) is a single node
808
representing the part that will be evaluated for each item.
809
+
810
For dictionary comprehensions using unpacking, for example
- ``{**item for item in items}``, ``value`` is ``None``,
811
+ ``{**item for item in items}``, the expression to be expanded goes in
812
+ ``key`` and ``value`` is ``None``.
813
814
``generators`` is a list of :class:`comprehension` nodes.
815
816
.. doctest::
0 commit comments