c enum - how to do this in python?

Klaus Meyer km-news1 at onlinehome.de
Sat Feb 22 05:10:51 EST 2003


> Python is a high level programming language
...
> a primitive language like C

But Python is written in C ;-)
And the Python-Sources containes enums...

I have seen the examples from some people (m0,m1,m2,m3... = range(4) ... ). 
Thanks!
If this is the "Python way" it's OK, but it's far away from the C enums.
Enum for example are const, not variables and the Compiler counts the 
const, you have not to do it yourself.

-- 
Gruß - regards Klaus :-)




More information about the Python-list mailing list