I think you had good reason to call it EnumMeta though: to better
distinguish "the enum meta type" (i.e. EnumMeta) from "enum types" (i.e.
instances of EnumMeta).

Cheers,
Nick.

On Sat, 23 Jan 2021, 9:17 am Ethan Furman, <et...@stoneleaf.us> wrote:

> The question:
>
>    Can we change the name of classes if we keep the old name as an alias?
>
> The specifics:
>
>    When Enum was first created for 3.4 I thought the name `EnumMeta` was
> clever and appropriate.  However, in the intervening years an error
> message has occasionally popped up with mention of an "EnumMeta object",
> and it invariably makes me think harder about what object it's talking
> about than I think I should have to.
>
>    I would like to rename `EnumMeta` to `EnumType`, with an assignment of
> `EnumMeta = EnumType` at the end.  The only affect this should have is
> that those occasional error messages will now say "EnumType object"
> which will fit my brain better.
>
> Since we are allowed to change `repr()`s between major releases I thought
> this might be allowed, but wanted to check.
>
> --
> ~Ethan~
> _______________________________________________
> python-committers mailing list -- python-committers@python.org
> To unsubscribe send an email to python-committers-le...@python.org
> https://mail.python.org/mailman3/lists/python-committers.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-committers@python.org/message/A6B52BFBLLOSKEX2GXUKNBFPXREO5PKB/
> Code of Conduct: https://www.python.org/psf/codeofconduct/
>
_______________________________________________
python-committers mailing list -- python-committers@python.org
To unsubscribe send an email to python-committers-le...@python.org
https://mail.python.org/mailman3/lists/python-committers.python.org/
Message archived at 
https://mail.python.org/archives/list/python-committers@python.org/message/NIEDLRB35VEZIKK54HJOD7QKJQUWJOMJ/
Code of Conduct: https://www.python.org/psf/codeofconduct/

Reply via email to