Possible Duplicate:
How can I represent an 'enum' in Python?
What's the common practice for enums in Python? I.e. how are they replicated in Python?
public enum Materials
{
Shaded,
Shiny,
Transparent,
Matte
}
class Materials:
Shaded, Shiny, Transparent, Matte = range(4)
>>> print Materials.Matte
3