def __getitem__(self, rule):
if rule not in self:<EOL><INDENT>raise KeyError(rule)<EOL><DEDENT>return self._population[rule.condition][rule.action]<EOL>
Defining this determines the behavior of
        "value = instance[item]" constructs.