def isNumeric(num):
    ''' 
        Returns True if the string representation of num is numeric 
        Inputs:
        =======
        num : A string representation of a number.
        Outputs:
        ========
        True if num is numeric, False otherwise
    '''
    try:
        float(num)
    except __HOLE__, typError:
        print 'valueError :',ValueError
        print 'typeError :',typError
        return False
    else:
        return True
dataset/ETHPy150Open pivotalsoftware/pymadlib/pymadlib/utils.py/isNumeric