Searched refs:comprehensions (Results 1 – 25 of 56) sorted by relevance
123
/external/python/cpython3/Python/ |
D | ast_unparse.c | 401 append_ast_comprehensions(_PyUnicodeWriter *writer, asdl_seq *comprehensions) in append_ast_comprehensions() argument 404 gen_count = asdl_seq_LEN(comprehensions); in append_ast_comprehensions() 407 APPEND(comprehension, (comprehension_ty)asdl_seq_GET(comprehensions, i)); in append_ast_comprehensions() 418 APPEND(comprehensions, e->v.GeneratorExp.generators); in append_ast_genexp() 427 APPEND(comprehensions, e->v.ListComp.generators); in append_ast_listcomp() 436 APPEND(comprehensions, e->v.SetComp.generators); in append_ast_setcomp() 447 APPEND(comprehensions, e->v.DictComp.generators); in append_ast_dictcomp()
|
/external/python/cpython3/Doc/reference/ |
D | expressions.rst | 165 .. index:: single: comprehensions 176 single: for; in comprehensions 177 single: if; in comprehensions 178 single: async for; in comprehensions 180 Common syntax elements for comprehensions are: 211 single: await; in comprehensions 226 Asynchronous comprehensions were introduced. 239 pair: list; comprehensions 265 pair: set; comprehensions 293 pair: dictionary; comprehensions [all …]
|
D | executionmodel.rst | 155 comprehensions and generator expressions since they are implemented using a
|
/external/starlark-go/starlark/testdata/ |
D | set.star | 24 # set comprehensions
|
D | list.star | 60 # list comprehensions
|
/external/python/cpython2/Doc/tutorial/ |
D | datastructures.rst | 247 List comprehensions provide a concise way to create lists. 323 List comprehensions can contain complex expressions and nested functions:: 529 Similarly to :ref:`list comprehensions <tut-listcomps>`, set comprehensions 593 In addition, dict comprehensions can be used to create dictionaries from
|
D | classes.rst | 876 similar to list comprehensions but with parentheses instead of square brackets. 880 than equivalent list comprehensions.
|
/external/python/cpython3/Doc/tutorial/ |
D | datastructures.rst | 199 List comprehensions provide a concise way to create lists. 280 List comprehensions can contain complex expressions and nested functions:: 483 Similarly to :ref:`list comprehensions <tut-listcomps>`, set comprehensions 551 In addition, dict comprehensions can be used to create dictionaries from
|
D | classes.rst | 895 similar to list comprehensions but with parentheses instead of square brackets. 899 than equivalent list comprehensions.
|
/external/yapf/ |
D | CHANGELOG | 70 - Improve splitting of comprehensions and generators. Add 72 comprehensions on a single line and `SPLIT_COMPLEX_COMPREHENSION` to enable 73 splitting each clause of complex comprehensions onto its own line. 501 - Improve how list comprehensions are formatted. Make splitting dependent upon
|
/external/python/cpython2/Doc/howto/ |
D | functional.rst | 323 Generator expressions and list comprehensions 332 List comprehensions and generator expressions (short form: "listcomps" and 353 materialize all the values at once. This means that list comprehensions aren't 358 comprehensions are surrounded by square brackets ("[]"). Generator expressions 624 obsolete; they duplicate the features of list comprehensions but return actual 645 comprehensions. A **predicate** is a function that returns the truth value of 1230 List comprehensions
|
/external/python/cpython3/Doc/library/ |
D | dis.rst | 158 comprehensions, generator expressions and nested functions, and the code 638 Calls ``set.add(TOS1[-i], TOS)``. Used to implement set comprehensions. 643 Calls ``list.append(TOS1[-i], TOS)``. Used to implement list comprehensions. 649 comprehensions.
|
D | ast.rst | 616 List and set comprehensions, generator expressions, and dictionary 617 comprehensions. ``elt`` (or ``key`` and ``value``) is a single node 673 ... indent=4)) # Multiple comprehensions in one. 1774 and async comprehensions.
|
D | 2to3.rst | 363 Add extra parenthesis where they are required in list comprehensions. For
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.4.rst | 119 having the entire data set in memory at one time. List comprehensions don't fit 140 Generator expressions work similarly to list comprehensions but don't 155 Generator expressions differ from list comprehensions in various small ways. 157 outside of the generator expression. List comprehensions leave the variable 159 list comprehensions match generator expressions in this respect. 944 :c:func:`realloc`. List comprehensions also benefit. :meth:`list.extend` was 960 for list comprehensions and speeds them up by about a third. (Contributed by
|
/external/python/cpython3/Doc/whatsnew/ |
D | 2.4.rst | 119 having the entire data set in memory at one time. List comprehensions don't fit 140 Generator expressions work similarly to list comprehensions but don't 155 Generator expressions differ from list comprehensions in various small ways. 157 outside of the generator expression. List comprehensions leave the variable 159 list comprehensions match generator expressions in this respect. 944 :c:func:`realloc`. List comprehensions also benefit. :meth:`list.extend` was 960 for list comprehensions and speeds them up by about a third. (Contributed by
|
D | 3.0.rst | 387 * Dictionary comprehensions: ``{k: v for k, v in stuff}`` means the 392 dictionary; use ``set()`` for an empty set. Set comprehensions are 436 * List comprehensions no longer support the syntactic form 439 Also note that list comprehensions have different semantics: they
|
/external/python/jinja/docs/ |
D | faq.rst | 85 most common ones and more advanced expressions such as list comprehensions
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.7a3.rst | 126 Backport set and dict comprehensions syntax from Python 3.x.
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.9.0a4.rst | 251 Optimized the idiom for assignment a temporary variable in comprehensions. 252 Now ``for y in [expr]`` in comprehensions is as fast as a simple assignment
|
D | 3.7.0b3.rst | 101 Don't use temporary variables in cases of list/dict/set comprehensions
|
D | 3.9.1rc1.rst | 50 Allow assignment expressions in set literals and set comprehensions as per
|
/external/python/cpython3/Doc/howto/ |
D | functional.rst | 325 Generator expressions and list comprehensions 334 List comprehensions and generator expressions (short form: "listcomps" and 355 materialize all the values at once. This means that list comprehensions aren't 360 comprehensions are surrounded by square brackets ("[]"). Generator expressions 640 list comprehensions. A **predicate** is a function that returns the truth
|
/external/python/cpython2/Doc/reference/ |
D | expressions.rst | 177 pair: list; comprehensions 192 pair: list; comprehensions 221 Common syntax elements for comprehensions are: 254 for comprehensions, except that it is enclosed in parentheses instead of 295 A dict comprehension, in contrast to list and set comprehensions, needs two
|
/external/python/cpython2/Doc/library/ |
D | 2to3.rst | 345 Add extra parenthesis where they are required in list comprehensions. For
|
123