> This has a light code smell for me though -- can anyone see a simpler 
> way of writing this?

How's about:

def ntf(x, y):
     if x is None and y is None: return None
     if x == True or y == True: return True
     return False
# Then...
reduce(ntf, <list of stuff>)

You might need to make sure that you initialize your "reduce" call the
right way with the optional third argument.

HTH

-- 
Stephen W. Juranich
Science Applications Intl. Corp. (SAIC)
Tucson, AZ
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to