def __digify_args(*args):
        """Covert all arguments to a number"""

        numbers = []

        for arg in args:
            if isinstance(arg, MathString):
                if '.' in arg:
                    numtype = float
                else:
                    numtype = int

                try:
                    arg = numtype(arg)
                except __HOLE__:
                    raise MathError("The value '%s' is not a number" % str(arg))

            numbers.append(arg)

        return numbers
dataset/ETHPy150Open marineam/nagcat/python/nagcat/util.py/MathString.__digify_args