import math


def safeArgs(args):
    """Iterate over valid, finite values in an iterable.

    Skip any items that are None, NaN, or infinite.
    """
    return (arg for arg in args
            if arg is not None and not math.isnan(arg) and not math.isinf(arg))