Turn off ZeroDivisionError?

endangeredmassa at gmail.com endangeredmassa at gmail.com
Sun Feb 10 11:46:41 EST 2008


Would a wrapper function be out of the question here?

def MyDivision(num, denom):
    if denom==0:
        return "NaN"
    else
        return num / denom



More information about the Python-list mailing list