<s> class EnumeratedType ( dict ) : <EOL> def __getattr__ ( self , item ) : <EOL> if self . has_key ( item ) : <EOL> return self [ item ] <EOL> raise AttributeError , "<STR_LIT>" "<STR_LIT>" % item <EOL> def __init__ ( self , name , * vals ) : <EOL> for item in vals : <EOL> self [ item ] = "<STR_LIT>" % ( name , item ) </s>
