On Apr 29, 2013, at 04:16 PM, Ethan Furman wrote: >I suppose the other option is to have `.value` be whatever was assigned (1, >'really big country', and (8273.199, 517) ), and the fact that >`int(Stuff.china) ` blows up and doesn't store easily in a database is the >programmers issue...
Correct. flufl.enum.IntEnums will blow up earlier, when the class is defined assigning the attributes to non-int values. -Barry _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com