enum in Python

Andrew Chalk achalk at XXXmagnacartasoftware.com
Mon Sep 8 23:38:50 CEST 2003


What is the best way to implement an equivalent of C's 'enum' type in
Python?

As a rank Python beginner I've used a dictionary, but presumably there is a
better way.

Thanks






More information about the Python-list mailing list