>> If it was just once or twice, sure, but I use them as names for ints, >> which means I use them as ints, which means I would have a boat load of >> int() calls. > > > Personally I don't see "name for ints" as being the main use case for enums.
Ethan seems to have a use case, even if it is using enums to masquerade as true named constants. Perhaps the correct solution is to consider support for true constants in Python. (I would be surprised if there wasn't already at least one rejected or dormant PEP regarding that topic.) Skip _______________________________________________ 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