[Python-Dev] feedback on Enum class

Aahz aahz at pythoncraft.com
Tue Dec 30 14:59:55 EST 2003

On Tue, Dec 30, 2003, Keith Dart wrote:
> I am posting this Enum (named number) class to this list for possible
> feedback. It can be used as a regular integer but when printed
> (stringified) it yeilds its name. The hash also makes named numbers with
> the same integer value into unique dictionary keys. That is the part I
> am not sure about... Comments appreciated. 

This should probably go to comp.lang.python.
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Weinberg's Second Law: If builders built buildings the way programmers wrote 
programs, then the first woodpecker that came along would destroy civilization.

More information about the Python-Dev mailing list