On 26/09/12 02:11, Richard D. Moores wrote:
On Tue, Sep 25, 2012 at 6:41 AM, Steven D'Aprano<st...@pearwood.info> wrote:
There are over a dozen examples of any or all in the Python standard
library.
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,
<http://docs.python.org/py3k/library/functions.html>.
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:
cd /usr/local/lib/python3.2
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:
http://code.google.com/codesearch
http://www.koders.com/
--
Steven
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor