def __init__(self, rules=tuple()):
        """See help(type(a))."""
        self.rules = []
        self.last_rule = None

        for rule in rules:
            rule = rule.strip()
            if rule != '':
                self.add_rule(rule)
def __init__ ( self , rules = tuple ( ) ) : self . rules = [ ] self . last_rule = None for rule in rules : rule = rule . strip ( ) if rule != '' : self . add_rule ( rule )
See help(type(a)).