missing 'xor' Boolean operator

Ethan Furman ethan at stoneleaf.us
Tue Jul 14 19:53:37 EDT 2009


Scott David Daniels wrote:
> Ethan Furman wrote:
> 
>>   and returns the last object that is "true"
> 
> A little suspect this.
> _and_ returns the first object that is not "true," or the last object.
> 
>>   or  returns the first object that is "true"
> 
> Similarly:
> _or_ returns the first object that is "true," or the last object.
> 

Thanks for the correction.

~Ethan~

> 
> --Scott David Daniels
> Scott.Daniels at Acm.Org




More information about the Python-list mailing list