def __init__(self, grammar):
        for name, symbol in grammar.symbol2number.iteritems():
            setattr(self, name, symbol)
multiple factories for interfaces
dataset/ETHPy150Open ctxis/canape/CANAPE.Scripting/Lib/lib2to3/pygram.py/Symbols.__init__--crossover with--dataset/ETHPy150Open enthought/traits/traits/tests/test_protocols_usage.py/ProtocolsUsageTestCase.test_multiple_factories_for_interface