Suppose I have a counter, is it possible to get the following property? So, if I had today=Days.Sunday , could I do something like tomorrow=today.next() ?
Example:
class Days(Enum): Sunday = 'S' Monday = 'M' ... Saturday = 'Sa'
I know that I could use tuples (for example, below) to do something like tomorrow=today[1] , but I was hoping there was something built or more elegant.
class Days(Enum): Sunday = ('S','Monday') Monday = ('M','Tuesday') ... Saturday = ('Sa','Sunday')
Parker
source share