Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

        def isnum(value):
    try:
        float(value)
    except:
        return False
    else:
        return True
        


src/m/o/monguo-0.1.13/monguo/validator.py   monguo(Download)
 
            elif operator == '$inc':
                if not util.isnum(value):
                    raise ValueError("Value in '$inc' must be number.")
 

src/m/o/Monguo-HEAD/monguo/validator.py   Monguo(Download)
 
            elif operator == '$inc':
                if not util.isnum(value):
                    raise ValueError("Value in '$inc' must be number.")