On Jan 23, 4:06 am, Gary Herron <[EMAIL PROTECTED]> wrote:

> However there *is* a (subtle) difference between
>   not f
> and
>   (not f and 1) or 0
>
> The first produces a boolean value, and the second produces an int
> value, but since one is a subclass of the other, you'd have to write
> quite perverse code care about the difference.

Even if for some reason I did want the result to be int, I would write
it as "int(not f)".

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

Reply via email to