5 ms·
The second parameter can also be a list/tuple of strings. e.g.: >>> Animal = Enum('Animal', ('lion', 'tiger', 'liger', 'tigon'))
by ulope 13y ago
The second parameter can also be a list/tuple of strings. e.g.:
>>> Animal = Enum('Animal', ('lion', 'tiger', 'liger', 'tigon'))