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 -- http://mail.python.org/mailman/listinfo/python-list