Steven D'Aprano wrote:

> Or wait, I have thought of one usage case: if you are returning a value
> that you know will be used only as a flag, you should convert it into a
> bool. Are there any other uses for bool()?

We could, of course, get along without it. One use for
canonical true and false values is to give 'not' something
sensible to return.


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

Reply via email to