Enum('red', 'blue', 'green')
This package provides a robust enumerated data type for Python.
But has a few other nice things as well.
Shelve supports seems to be there, as long as your
>>> color = enum.Enum('red', 'blue', 'green');
>>> color.red > color.blue
False
But has a few other nice things as well.
enum.Enum('one').one != enum.Enum('one').one
because they are two different enums! Shelve supports seems to be there, as long as your
import enum
<< Home