On Tue, Feb 26, 2013 at 12:53 AM, Skip Montanaro <s...@pobox.com> wrote: >>> 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.)
I don't think we need true constants - labelled values should suffice for easier to debug magic numbers. Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ 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