MRAB <pyt...@mrabarnett.plus.com> wrote:

> Operation      Result
>|x or y|      x if x else y
>|x and y|      y if x else x
>|not x|      False if x else False
> 
>:-)
> 

That's not a terribly good definition for the 'not' operator. Try:

  |not x| False if x else True



-- 
Duncan Booth http://kupuguy.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to