[Python-ideas] PEP for enum library type?
Greg Ewing
greg.ewing at canterbury.ac.nz
Wed Feb 13 00:26:21 CET 2013
Steven D'Aprano wrote:
> 99.9% of the time I don't care what value enums have, in fact it is an
> advantage if I don't know. Pascal, as I remember it, doesn't give you any
> way to find out.
Yes, it does: the ord() function.
> But I consider enums displaying as their name to be
> essential to an enum.
That's one thing that, frustratingly, standard Pascal
*doesn't* give you (although many dialects have
extensions that do).
--
Greg
More information about the Python-ideas
mailing list