c enum - how to do this in python?

Klaus Meyer km-news1 at onlinehome.de
Fri Feb 21 16:26:08 EST 2003


Hi,

C has enum to define named constant like:
enum { M0, M1, M2, MCOUNT };
(MCOUNT gives the number of constants, nice for loops or so)

How to do this in Python?

-- 
Gruß - regards Klaus :-)




More information about the Python-list mailing list