Opinions about this new Python book?
Alex Martelli
aleax at mac.com
Wed Aug 15 12:02:10 EDT 2007
Neil Cerutti <horpner at yahoo.com> wrote:
> On 2007-08-15, kyosohma at gmail.com <kyosohma at gmail.com> wrote:
> > For some reason, the author makes the claim that the term
> > "Predicate" is "bandied about quite a bit in the literature" of
> > Python. I have 17 or so Python books and I don't think I've
> > ever seen this used in conjunction with Python...or in any of
> > the docs I've skimmed. What the!?
>
> The document searching facility reveals that the term is bandied
> about in five places in the standard documentation. These uses
> seem approriate and uncontroversial to me.
>
> These document functions accepting predicates as aruments:
>
> 6.5.1 Itertools functions
> 6.5.3 Recipes
> 11.47 Creating a new Distutils command
> 26.10.1 Types and members
>
> The following provides a few predicate functions (weird! I'd have
> never thought to look there for, e.g., ismodule):
>
> 6.7 operator -- Standard operators as functions
Module inspect also provides useful predicates (though I don't remember
if its docs CALL them predicates;-).
Alex
More information about the Python-list
mailing list