AI library

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Fri Dec 15 10:51:48 EST 2006


Gabriel Genellina:
> This is more stylish, but I prefer to use isxxx() or hasxxx() for
> functions that return booleans.

Lisp-like languages allow the ending ? or !, I think Ruby allows the
ending ? too (allowing it with Python may be positive). Mathematica
usually uses an ending uppercase Q, like PrimeQ, sometimes I use the
ending Q in Python too.

Bye,
bearophile




More information about the Python-list mailing list