def step_binary(iterable):
        """A stepper function for bitwise or-able values."""
        counter = itertools.count(start, step)
        for name in iterable:
            yield name, 2**next(counter)
A stepper function for bitwise or-able values.
recipes/Python/577755_Simple_but_Powerful_Grouped_Constants__Step/recipe-577755.py