
Jan. 29, 2013
5:50 a.m.
On Tue, Jan 29, 2013 at 11:50 AM, Joao S. O. Bueno <jsbueno@python.org.br> wrote:
This idea is not new - but it is stalled - Last I remember it came around in Python-devel in 2010, in this thread: http://mail.python.org/pipermail/python-dev/2010-November/thread.html#105967
FWIW, since that last discussion, I've switched to using strings for my special constants, dumping them in a container if I need some kind of easy validity checking or iteration. That said, an enum type may still be useful for interoperability with other systems (databases, C APIs, etc). Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia