/external/python/cpython2/Parser/ |
D | Python.asdl | 60 | 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/ |
D | Python.asdl | 66 | 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/ |
D | test_ast.py | 274 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/ |
D | expressions.rst | 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 [all …]
|
/external/python/cpython2/Doc/reference/ |
D | expressions.rst | 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 [all …]
|
/external/python/cpython3/Doc/tutorial/ |
D | datastructures.rst | 218 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/ |
D | datastructures.rst | 268 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/ |
D | CHANGELOG | 85 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/cpython2/Doc/howto/ |
D | functional.rst | 342 # 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/cpython3/Doc/howto/ |
D | functional.rst | 344 # 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/scapy/ |
D | CONTRIBUTING.md | 120 - use list comprehension instead of map() and filter()
|
/external/python/cpython2/Lib/test/ |
D | test_ast.py | 245 self.assertTrue(issubclass(ast.comprehension, ast.AST))
|
/external/parameter-framework/upstream/tools/xmlGenerator/ |
D | README.md | 22 - Intuitive syntax and comprehension when you know the PFW concepts
|
/external/antlr/runtime/Python3/ |
D | pylintrc | 115 # Regular expression which should only match correct list comprehension /
|
/external/antlr/runtime/Python/ |
D | pylintrc | 189 # Regular expression which should only match correct list comprehension /
|
/external/autotest/utils/ |
D | pylintrc | 190 # Regular expression which should only match correct list comprehension /
|
/external/python/cpython2/Python/ |
D | ast.c | 1112 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/Include/ |
D | Python-ast.h | 519 #define comprehension(a0, a1, a2, a3) _Py_comprehension(a0, a1, a2, a3) macro
|
/external/python/cpython3/Python/ |
D | ast_unparse.c | 379 APPEND(comprehension, (comprehension_ty)asdl_seq_GET(comprehensions, i)); in append_ast_comprehensions()
|
/external/python/cpython2/PC/os2emx/ |
D | python27.def | 733 "comprehension"
|
/external/tensorflow/tensorflow/tools/ci_build/ |
D | pylintrc | 158 # Regular expression which should only match correct list comprehension /
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.6.0a2.rst | 357 compiler for comprehension and generator expression scopes as if they were
|
/external/python/cpython3/Include/ |
D | Python-ast.h | 613 #define comprehension(a0, a1, a2, a3, a4) _Py_comprehension(a0, a1, a2, a3, a4) macro
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.0.rst | 307 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/ |
D | 2.0.rst | 307 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
|