def __iter__(self):
for by_action in self._population.values():<EOL><INDENT>for rule in by_action.values():<EOL><INDENT>yield rule<EOL><DEDENT><DEDENT>
Defining this determines the behavior of instances of this class
        with respect to iteration constructs such as "iter(instance)" and
        "for item in instance:".