[Tutor] Usefulness of BIFs all() and any()?
steve at pearwood.info
Tue Sep 25 18:52:06 CEST 2012
On 26/09/12 02:11, Richard D. Moores wrote:
> On Tue, Sep 25, 2012 at 6:41 AM, Steven D'Aprano<steve at pearwood.info> wrote:
>> There are over a dozen examples of any or all in the Python standard
> How could I have gone about finding these examples? I tried searching
> the docs on any and all, but found them only in the BIF section,
I used the Linux tools on my PC to search the library.
(Oooh, I'm in trouble now... I called them *Linux* tools instead of GNU tools)
*half a smiley*
At a bash prompt, I did:
grep " all[(]" *.py
grep " any[(]" *.py
Whatever your operating system is, find your Python installation, and search
the .py files.
You can also try these:
More information about the Tutor