<s> def enum ( * sequential , ** named ) : <EOL> """<STR_LIT>""" <EOL> enums = dict ( zip ( sequential , range ( len ( sequential ) ) ) , ** named ) <EOL> reverse = dict ( ( value , key ) for key , value in enums . iteritems ( ) ) <EOL> enums [ '<STR_LIT>' ] = reverse <EOL> return type ( '<STR_LIT>' , ( ) , enums ) </s>
