"Mick Krippendorf" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Fahri Basegmez wrote:
>> reduce(lambda x, y: x or y, lst)
>
> This doesn't solve the OPs problem since
>
> >>> reduce(lambda x, y: x or y, [False, None])
>
> returns None instead of False.
>
> Mick.
>

You are right.
I tested None or False and it worked. I assumed order did not matter for or 
operator.

None or False returns False
False or None returns None

You know what they say about assumptions. Live and learn.

Fahri


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to