Le Wed, 27 Feb 2013 12:33:35 +0900, "Stephen J. Turnbull" <step...@xemacs.org> a écrit : > > As far as I can see, what you (Antoine) want is an identifier with a > constant value, no more and no less. Grouping into an enum is merely > a lexical convention, since you are happy to compare enums of > different enum classes and enums with ints. > > I think such a thing is pretty generally desirable, but most of the > people who have created Enum classes implement some type-checking that > this value came from that Enum. To me that is what differentiates an > enumerated constant from a generic named constant. I don't see why > you keep deprecating that feature. Do you really think it's useless, > or is it just that you wouldn't use it yourself?
I just wouldn't care for it myself. I don't think extra-strong typing of constants is really useful in practice; it smells a bit like private methods to me. Regards Antoine. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com