Lines Matching refs:comprehension
173 :dfn:`comprehension`.
183 comprehension: `assignment_expression` `comp_for`
188 The comprehension consists of a single expression followed by at least one
196 the comprehension is executed in a separate implicitly nested scope. This ensures
206 To ensure the comprehension always results in a container of the appropriate
215 A comprehension in an :keyword:`!async def` function may consist of either a
219 If a comprehension contains either :keyword:`!async for` clauses
221 :dfn:`asynchronous comprehension`. An asynchronous comprehension may
249 list_display: "[" [`starred_list` | `comprehension`] "]"
252 a list of expressions or a comprehension. When a comma-separated list of
254 placed into the list object in that order. When a comprehension is supplied,
255 the list is constructed from the elements resulting from the comprehension.
274 set_display: "{" (`starred_list` | `comprehension`) "}"
277 either a sequence of expressions or a comprehension. When a comma-separated
279 and added to the set object. When a comprehension is supplied, the set is
280 constructed from the elements resulting from the comprehension.
329 A dict comprehension, in contrast to list and set comprehensions, needs two
331 When the comprehension is run, the resulting key and value elements are inserted
918 call: `primary` "(" [`argument_list` [","] | `comprehension`] ")"