Home
last modified time | relevance | path

Searched refs:comprehension (Results 1 – 25 of 77) sorted by relevance

1234

/external/python/cpython2/Parser/
DPython.asdl60 | ListComp(expr elt, comprehension* generators)
61 | SetComp(expr elt, comprehension* generators)
62 | DictComp(expr key, expr value, comprehension* generators)
63 | GeneratorExp(expr elt, comprehension* generators)
101 comprehension = (expr target, expr iter, expr* ifs)
/external/python/cpython3/Parser/
DPython.asdl63 | ListComp(expr elt, comprehension* generators)
64 | SetComp(expr elt, comprehension* generators)
65 | DictComp(expr key, expr value, comprehension* generators)
66 | GeneratorExp(expr elt, comprehension* generators)
104 comprehension = (expr target, expr iter, expr* ifs, int is_async)
/external/python/cpython3/Misc/NEWS.d/
D3.9.0b5.rst89 ast.PyCF_ALLOW_TOP_LEVEL_AWAIT would aggressively mark list comprehension
90 with CO_COROUTINE. Now only list comprehension making use of async/await
/external/starlark-go/starlark/testdata/
Ddict.star17 # dict comprehension
135 # comprehension
239 # Verify position of an "unhashable key" error in a dict comprehension.
Dbenchmark.star56 "Benchmark of a simple mix of computation (for, if, arithmetic, comprehension)."
Dassign.star242 # all 'in x' expressions in a comprehension are evaluated
243 # in the comprehension's lexical block, except the first,
250 # A comprehension establishes a single new lexical block,
Dtuple.star55 # (for loop, comprehension, library functions).
Dlist.star82 # A list comprehension defines a separate lexical block,
114 # (for loop, comprehension, library functions).
Dmisc.star20 # - comprehension: unhashable dict key;
/external/starlark-go/syntax/testdata/
Derrors.star87 # tuple after 'in' only in a for statement but not in a comprehension.
94 # Unparenthesized tuple is not allowed as operand of 'if' in comprehension.
/external/python/cpython3/Doc/reference/
Dexpressions.rst173 :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
[all …]
/external/python/cpython3/Doc/library/
Dast.rst620 ``generators`` is a list of :class:`comprehension` nodes.
629 comprehension(
643 comprehension(
653 comprehension(
660 .. class:: comprehension(target, iter, ifs, is_async)
662 One ``for`` clause in a comprehension. ``target`` is the reference to use for
667 ``is_async`` indicates a comprehension is asynchronous (using an
682 comprehension(
687 comprehension(
694 ... indent=4)) # generator comprehension
[all …]
/external/python/cpython2/Doc/reference/
Dexpressions.rst197 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
[all …]
/external/python/cpython3/Lib/test/
Dtest_ast.py342 self.assertTrue(issubclass(ast.comprehension, ast.AST))
1284 g = ast.comprehension(ast.Name("x", ast.Load()),
1287 g = ast.comprehension(ast.Name("x", ast.Store()),
1292 g = ast.comprehension(x, y, [None], 0)
1294 g = ast.comprehension(x, y, [ast.Name("x", ast.Store())], 0)
1298 g = ast.comprehension(ast.Name("x", ast.Store()),
1316 g = ast.comprehension(ast.Name("y", ast.Store()),
/external/starlark-go/internal/compile/
Dcompile.go1355 fcomp.comprehension(e, 0)
1734 func (fcomp *fcomp) comprehension(comp *syntax.Comprehension, clauseIndex int) { func
1763 fcomp.comprehension(comp, clauseIndex+1)
1785 fcomp.comprehension(comp, clauseIndex+1)
/external/tensorflow/tensorflow/lite/g3doc/models/bert_qa/
Doverview.md46 Answering Dataset, is a reading comprehension dataset consisting of articles
/external/python/cpython2/Doc/tutorial/
Ddatastructures.rst268 A list comprehension consists of brackets containing an expression followed
333 The initial expression in a list comprehension can be any arbitrary expression,
334 including another list comprehension.
345 The following list comprehension will transpose rows and columns::
/external/python/cpython3/Doc/tutorial/
Ddatastructures.rst225 A list comprehension consists of brackets containing an expression followed
289 The initial expression in a list comprehension can be any arbitrary expression,
290 including another list comprehension.
301 The following list comprehension will transpose rows and columns::
/external/yapf/
DCHANGELOG85 comprehension is an argument.
278 of a dictionary comprehension.
381 before an if expression. This allows the user to place a list comprehension
430 - If the "for" part of a list comprehension can exist on the starting line
/external/python/cpython3/Doc/howto/
Dfunctional.rst344 # List comprehension -- returns list
352 With a list comprehension, you get back a Python list; ``stripped_list`` is a
372 Again, for a list comprehension only the outside brackets are different (square
391 To put it another way, a list comprehension or generator expression is
422 comprehension below is a syntax error, while the second one is correct::
636 You can of course achieve the same effect with a list comprehension.
651 This can also be written as a list comprehension:
/external/python/cpython2/Doc/howto/
Dfunctional.rst342 # List comprehension -- returns list
350 With a list comprehension, you get back a Python list; ``stripped_list`` is a
370 Again, for a list comprehension only the outside brackets are different (square
389 To put it another way, a list comprehension or generator expression is
423 comprehension below is a syntax error, while the second one is correct::
639 As shown above, you can achieve the same effect with a list comprehension. The
655 This can also be written as a list comprehension:
/external/scapy/
DCONTRIBUTING.md120 - use list comprehension instead of map() and filter()
/external/python/cpython2/Lib/test/
Dtest_ast.py245 self.assertTrue(issubclass(ast.comprehension, ast.AST))
/external/starlark-go/doc/
Dspec.md646 a `for`-loop, list comprehension, or any other operation than requires
808 `for`-loop, a list comprehension, or various built-in functions.
871 comprehension](#comprehension), which evaluates a pair of expressions,
882 operand of a `for`-loop, a list comprehension, or various built-in
936 `for`-loop, a list comprehension, or various built-in functions.
1215 in a `for`-loop (`f`) or comprehension (`g`, `i`).
1263 function, and a _comprehension_ block for each top-level comprehension.
1753 expression as the operand of a list comprehension:
2217 A comprehension constructs new list or dictionary value by looping
2221 A list comprehension consists of a single expression followed by one
[all …]
/external/webrtc/
Dpylintrc147 # Regular expression which should only match correct list comprehension /

1234