Package winappdbg :: Module util :: Class Regenerator
[hide private]
[frames] | no frames]

Class Regenerator

source code


Calls a generator and iterates it. When it's finished iterating, the generator is called again. This allows you to iterate a generator more than once (well, sort of).

Instance Methods [hide private]
 
__init__(self, g_function, *v_args, **d_args)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__iter__(x)
iter(x)
source code
the next value, or raise StopIteration
next(x) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, g_function, *v_args, **d_args)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • g_function (function) - Function that when called returns a generator.
  • v_args (tuple) - Variable arguments to pass to the generator function.
  • d_args (dict) - Variable arguments to pass to the generator function.
Overrides: object.__init__