[Python-ideas] constant/enum type in stdlib (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Tue Jan 29 12:50:07 CET 2013
- Previous message: [Python-ideas] constant/enum type in stdlib
- Next message: [Python-ideas] constant/enum type in stdlib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Jan 29, 2013 at 11:50 AM, Joao S. O. Bueno <jsbueno at 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 at gmail.com | Brisbane, Australia
- Previous message: [Python-ideas] constant/enum type in stdlib
- Next message: [Python-ideas] constant/enum type in stdlib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]