[python-committers] Re: metaclass names and backwards compatibility

2021-01-25 Thread Victor Stinner
Hi Ethan, In general, I would say that we don't provide any backward compatibility warranties on the exact repr() output. In practice, we attempt to not change it unless there is a good reason for that. IMO in your case, it's justified. When float repr() was changed, it broke tons of doctests :-(

[python-committers] Re: metaclass names and backwards compatibility

2021-01-22 Thread Nick Coghlan
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, wrote: > The question: > >Can we change the name of classes if we keep

[python-committers] Re: metaclass names and backwards compatibility

2021-01-22 Thread Guido van Rossum
Seems reasonable -- I think we've done this kind of thing before. On Fri, Jan 22, 2021 at 3:17 PM Ethan Furman 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 `En