missing 'xor' Boolean operator
Emile van Sebille
emile at fenx.com
Thu Jul 16 09:34:34 EDT 2009
On 7/16/2009 2:06 AM Jean-Michel Pichavant said...
> Ok then, why "or" does not return True, if the first element is
> considered True ? Why returning the element itself. Any reason for that
> ? Because it's confusing, maybe people used to that logic find it
> obvious, but I really don't.
For example, I sometimes use it to set defaults:
daysInAdvance = int(inputVar) or 25
Emile
More information about the Python-list
mailing list