Enumeration idioms: Values from different enumerations
skip at pobox.com
skip at pobox.com
Fri Dec 16 10:28:13 EST 2005
Without downloading and installing your code, can you tell me what the
result of these comparisons would be?
col = Enum('red', 'green', 'blue')
day = Enum('mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun')
col.blue == "blue"
day.tue == 23
If they return False I would expect
col.blue == day.tue
to return False as well, not raise an exception.
Skip
More information about the Python-list
mailing list