Skip to content

Commit 606df1b

Browse files
[3.15] gh-151925: Clarify ast.DictComp.value for dict unpacking (GH-152463) (#155252)
Co-authored-by: AkhilByju <99003217+AkhilByju@users.noreply.github.com>
1 parent 027444c commit 606df1b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/library/ast.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,8 @@ Comprehensions
806806
List and set comprehensions, generator expressions, and dictionary
807807
comprehensions. ``elt`` (or ``key`` and ``value``) is a single node
808808
representing the part that will be evaluated for each item.
809-
809+
For dictionary comprehensions using unpacking, for example
810+
``{**item for item in items}``, ``value`` is ``None``,
810811
``generators`` is a list of :class:`comprehension` nodes.
811812

812813
.. doctest::

0 commit comments

Comments
 (0)