Lines Matching refs:comprehension
197 providing either a list of expressions or a list comprehension. When a
200 comprehension is supplied, it consists of a single expression followed by at
219 :dfn:`comprehension`.
224 comprehension: `expression` `comp_for`
229 The comprehension consists of a single expression followed by at least one
236 Note that the comprehension is executed in a separate scope, so names assigned
295 A dict comprehension, in contrast to list and set comprehensions, needs two
297 When the comprehension is run, the resulting key and value elements are inserted
322 set_display: "{" (`expression_list` | `comprehension`) "}"
325 either a sequence of expressions or a comprehension. When a comma-separated
327 and added to the set object. When a comprehension is supplied, the set is
328 constructed from the elements resulting from the comprehension.
1509 .. [#] In Python 2.3 and later releases, a list comprehension "leaks" the control