(a)
return bool(a._numerator)
a != 0
a != 0
a ! = 0
def __bool__(a):
        """a != 0"""
        # bpo-39274: Use bool() because (a._numerator != 0) can return an
        # object which is not a bool.
        return bool(a._numerator)
def __bool__ ( a ) : # bpo-39274: Use bool() because (a._numerator != 0) can return an # object which is not a bool. return bool ( a . _numerator )