Alan Isaac <[EMAIL PROTECTED]> wrote: > Miles wrote: > > What boolean operation does '-' represent? > > Complementation. > And as usual, a-b is to be interpreted as a+(-b). > In which case the desired behavior is > False-True = False+(-True)=False+False = False
If you want to do algebra with bools in python then use the logical operators (and or not) and not the arithmetical operators. Eg >>> False or not True False -- Nick Craig-Wood <[EMAIL PROTECTED]> -- http://www.craig-wood.com/nick -- http://mail.python.org/mailman/listinfo/python-list