Home
last modified time | relevance | path

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

12

/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.asdl66 | ListComp(expr elt, comprehension* generators)
67 | SetComp(expr elt, comprehension* generators)
68 | DictComp(expr key, expr value, comprehension* generators)
69 | GeneratorExp(expr elt, comprehension* generators)
113 comprehension = (expr target, expr iter, expr* ifs, int is_async)
/external/python/cpython3/Lib/test/
Dtest_ast.py274 self.assertTrue(issubclass(ast.comprehension, ast.AST))
873 g = ast.comprehension(ast.Name("x", ast.Load()),
876 g = ast.comprehension(ast.Name("x", ast.Store()),
881 g = ast.comprehension(x, y, [None], 0)
883 g = ast.comprehension(x, y, [ast.Name("x", ast.Store())], 0)
887 g = ast.comprehension(ast.Name("x", ast.Store()),
905 g = ast.comprehension(ast.Name("y", ast.Store()),
/external/python/cpython3/Doc/reference/
Dexpressions.rst172 :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
[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/Doc/tutorial/
Ddatastructures.rst218 A list comprehension consists of brackets containing an expression followed
282 The initial expression in a list comprehension can be any arbitrary expression,
283 including another list comprehension.
294 The following list comprehension will transpose rows and columns::
/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/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/python/cpython2/Lib/test/
Dtest_ast.py245 self.assertTrue(issubclass(ast.comprehension, ast.AST))
/external/scapy/
DCONTRIBUTING.md120 - use list comprehension instead of map() and filter()
/external/parameter-framework/upstream/tools/xmlGenerator/
DREADME.md22 - Intuitive syntax and comprehension when you know the PFW concepts
/external/antlr/runtime/Python3/
Dpylintrc115 # Regular expression which should only match correct list comprehension /
/external/antlr/runtime/Python/
Dpylintrc189 # Regular expression which should only match correct list comprehension /
/external/autotest/utils/
Dpylintrc190 # Regular expression which should only match correct list comprehension /
/external/python/cpython2/Python/
Dast.c1112 lc = comprehension(first, expression, NULL, c->c_arena); in ast_for_listcomp()
1114 lc = comprehension(Tuple(t, Store, first->lineno, first->col_offset, in ast_for_listcomp()
1253 comp = comprehension(first, expression, NULL, c->c_arena); in ast_for_comprehension()
1255 comp = comprehension(Tuple(t, Store, first->lineno, first->col_offset, in ast_for_comprehension()
/external/python/cpython2/PC/os2emx/
Dpython27.def733 "comprehension"
/external/tensorflow/tensorflow/tools/ci_build/
Dpylintrc158 # Regular expression which should only match correct list comprehension /
/external/python/cpython3/Python/
Dast_unparse.c379 APPEND(comprehension, (comprehension_ty)asdl_seq_GET(comprehensions, i)); in append_ast_comprehensions()
/external/python/cpython2/Include/
DPython-ast.h519 #define comprehension(a0, a1, a2, a3) _Py_comprehension(a0, a1, a2, a3) macro
/external/python/cpython3/Misc/NEWS.d/
D3.6.0a2.rst357 compiler for comprehension and generator expression scopes as if they were
/external/python/cpython3/Include/
DPython-ast.h613 #define comprehension(a0, a1, a2, a3, a4) _Py_comprehension(a0, a1, a2, a3, a4) macro
/external/python/cpython2/Doc/whatsnew/
D2.0.rst307 To make the semantics very clear, a list comprehension is equivalent to the
332 comprehension below is a syntax error, while the second one is correct::
341 for adding them to Python and wrote the initial list comprehension patch, which
/external/python/cpython3/Doc/whatsnew/
D2.0.rst307 To make the semantics very clear, a list comprehension is equivalent to the
332 comprehension below is a syntax error, while the second one is correct::
341 for adding them to Python and wrote the initial list comprehension patch, which

12