(x)
return bool(x)
Return True, False or None according to x.

    Whereas bool(x) returns True or False, fuzzy_bool allows
    for the None value.
Return True, False or None according to x.
Return True False or None according to x .
def fuzzy_bool(x):
    """Return True, False or None according to x.

    Whereas bool(x) returns True or False, fuzzy_bool allows
    for the None value.
    """
    if x is None:
        return None
    return bool(x)
def fuzzy_bool ( x ) : if x is None : return None return bool ( x )