Lines Matching refs:comprehension
172 :dfn:`comprehension`.
182 comprehension: `expression` `comp_for`
187 The comprehension consists of a single expression followed by at least one
195 the comprehension is executed in a separate implicitly nested scope. This ensures
205 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.
273 set_display: "{" (`starred_list` | `comprehension`) "}"
276 either a sequence of expressions or a comprehension. When a comma-separated
278 and added to the set object. When a comprehension is supplied, the set is
279 constructed from the elements resulting from the comprehension.
327 A dict comprehension, in contrast to list and set comprehensions, needs two
329 When the comprehension is run, the resulting key and value elements are inserted
909 call: `primary` "(" [`argument_list` [","] | `comprehension`] ")"