A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-March/052205.html below:

[Python-Dev] comprehension abbreviation (was: Adding any() and all())

[Python-Dev] comprehension abbreviation (was: Adding any() and all()) [Python-Dev] comprehension abbreviation (was: Adding any() and all())Brett C. bac at OCF.Berkeley.EDU
Tue Mar 15 22:55:40 CET 2005
Eric Nieuwland wrote:
> Martin v. Löwis wrote:
> 
>> That's not the full syntax. The full syntax is
>>
>>     [ <test> for <exprlist> in <testlist> <list-iter-opt> ]
>>
>> where
>>
>> <test> can be an arbitrary expression: and, or, lambda, +, -, ...
>> <exprlist> can be a list of expression, except for boolean and
>> relational expressions (but I think this is further constrained
>> semantically)
>> <testlist> list a list of tests
>> <list-iter-opt> is optional, and can be another for or if block
> 
> 
> Aren't these names a bit mixed up w.r.t. what's in that position?

The names come directly from the grammar file (Grammar/Grammar) and thus have 
multiple uses.  Basically ignore the actual names and just consider them 
placeholders.

-Brett
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4