I'm having trouble setting an Enum value to one of it's possibility in a class...
If I have in an iPython window:
eTest = Enum('zero', 'one', 'two', 'three')
I can do:
eTest.value = eTest.values[2]
and print eTest.value
gives me the correct answer: two
I'm trying the same thing in a python class, and it tells me that:
AttributeError: 'str' object has no attribute 'values'
how can I set eTest to have the [3] value of the Enums without having to type in the word 'three'?