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

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to