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/2003-October/039705.html below:

[Python-Dev] product()

[Python-Dev] product() [Python-Dev] product()Michael Chermside mcherm at mcherm.com
Tue Oct 28 10:44:38 EST 2003
Nick Coghlan writes:

>  >>> if all(pred(x) for x in values): pass       # alltrue
>  >>> if any(pred(x) for x in values): pass       # anytrue
>  >>> if any(not pred(x) for x in values): pass   # anyfalse
>  >>> if all(not pred(x) for x in values): pass   # allfalse
> 
> The names from the earlier thread do read nicely. . .

+1  Very nicely indeed.

-- Michael Chermside

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