(starting_factor=1)
Generator yielding something like 1, 3, 10, 30, 100, 300 etc.

    The series starts from starting_factor.
Generator yielding something like 1, 3, 10, 30, 100, 300 etc.
Generator yielding something like 1 3 10 30 100 300 etc .
def _iter_factors(starting_factor=1):
    """Generator yielding something like 1, 3, 10, 30, 100, 300 etc.

    The series starts from starting_factor.
    """
    while True:
        yield starting_factor
        yield starting_factor * 3
        starting_factor *= 10
def _iter_factors ( starting_factor = 1 ) : while True : yield starting_factor yield starting_factor * 3 starting_factor *= 10