Although Java is not a good example of anything, they have a similar feature. What do you people think?is not much more useful than just a bunch of integers... Having this kind of control IMO is.regex-parsed language to fit objects with an arbitrary level of complexity. I think, enumeration per seI have my own implementation with a basic api somewhat borrowed from flufl.enum (plus a lot of other stuff),Hi, about this enum/const thing, The use case I like more is a class where you know all theParticularly It would be nice to have custom attributes and methods besides the value and the name.
instances and not just a sequence of names.
but with this kind of support: https://github.com/jbvsmo/makeobj
I couldn't find the best way to express enums with the current python syntax, so I also wrote a simple