Home
last modified time | relevance | path

Searched refs:comprehensions (Results 1 – 25 of 42) sorted by relevance

12

/external/python/cpython3/Python/
Dast_unparse.c373 append_ast_comprehensions(_PyUnicodeWriter *writer, asdl_seq *comprehensions) in append_ast_comprehensions() argument
376 gen_count = asdl_seq_LEN(comprehensions); in append_ast_comprehensions()
379 APPEND(comprehension, (comprehension_ty)asdl_seq_GET(comprehensions, i)); in append_ast_comprehensions()
390 APPEND(comprehensions, e->v.GeneratorExp.generators); in append_ast_genexp()
399 APPEND(comprehensions, e->v.ListComp.generators); in append_ast_listcomp()
408 APPEND(comprehensions, e->v.SetComp.generators); in append_ast_setcomp()
419 APPEND(comprehensions, e->v.DictComp.generators); in append_ast_dictcomp()
/external/python/cpython3/Doc/tutorial/
Ddatastructures.rst192 List comprehensions provide a concise way to create lists.
273 List comprehensions can contain complex expressions and nested functions::
476 Similarly to :ref:`list comprehensions <tut-listcomps>`, set comprehensions
544 In addition, dict comprehensions can be used to create dictionaries from
Dclasses.rst887 similar to list comprehensions but with parentheses instead of square brackets.
891 than equivalent list comprehensions.
/external/python/cpython2/Doc/tutorial/
Ddatastructures.rst247 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
Dclasses.rst876 similar to list comprehensions but with parentheses instead of square brackets.
880 than equivalent list comprehensions.
/external/python/cpython3/Doc/reference/
Dexpressions.rst175 single: for; in comprehensions
176 single: if; in comprehensions
177 single: async for; in comprehensions
179 Common syntax elements for comprehensions are:
211 single: await; in comprehensions
226 Asynchronous comprehensions were introduced.
239 pair: list; comprehensions
327 A dict comprehension, in contrast to list and set comprehensions, needs two
358 for comprehensions, except that it is enclosed in parentheses instead of
429 implement comprehensions and generator expressions (in Python 3.7, such
[all …]
Dexecutionmodel.rst153 comprehensions and generator expressions since they are implemented using a
/external/yapf/
DCHANGELOG70 - 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
DREADME.rst522 For list comprehensions and generator expressions with multiple clauses
/external/python/cpython2/Doc/howto/
Dfunctional.rst323 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/tensorflow/tensorflow/python/autograph/
DLIMITATIONS.md37 …into the appropriate combination of `For` and `If` statements. Other comprehensions are currently …
/external/python/cpython3/Doc/library/
Ddis.rst158 comprehensions, generator expressions and nested functions, and the code
621 Calls ``set.add(TOS1[-i], TOS)``. Used to implement set comprehensions.
626 Calls ``list.append(TOS[-i], TOS)``. Used to implement list comprehensions.
632 comprehensions.
D2to3.rst365 Add extra parenthesis where they are required in list comprehensions. For
/external/python/cpython3/Doc/whatsnew/
D2.4.rst119 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
D3.0.rst387 * 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
D2.0.rst288 substring is being searched for. List comprehensions make this cleaner::
292 List comprehensions have the form::
339 The idea of list comprehensions originally comes from the functional programming
/external/python/cpython2/Doc/whatsnew/
D2.4.rst119 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
D2.0.rst288 substring is being searched for. List comprehensions make this cleaner::
292 List comprehensions have the form::
339 The idea of list comprehensions originally comes from the functional programming
/external/python/cpython2/Misc/NEWS.d/
D2.7a3.rst126 Backport set and dict comprehensions syntax from Python 3.x.
/external/python/cpython3/Doc/howto/
Dfunctional.rst325 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/cpython3/Misc/NEWS.d/
D3.7.0b3.rst101 Don't use temporary variables in cases of list/dict/set comprehensions
D3.6.0b1.rst413 Implement PEP 530 -- asynchronous comprehensions.
/external/python/cpython2/Doc/reference/
Dexpressions.rst177 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/
D2to3.rst345 Add extra parenthesis where they are required in list comprehensions. For
Ddis.rst490 Calls ``list.append(TOS[-i], TOS)``. Used to implement list comprehensions.

12