[Python-ideas] Re: Make dataclass aware that it might be used with Enum

2022-07-10 Thread Barry Scott
> On 9 Jul 2022, at 22:53, Steve Jorgensen wrote: > > I don't think that dataclasses have the limited set of intended uses that you > are interpreting them as having. To me, the fact that they can be frozen > makes them a good fit with Enum. Please quote the email that you are replying to.

[Python-ideas] Re: Make dataclass aware that it might be used with Enum

2022-07-10 Thread David Mertz, Ph.D.
I've seen this thread, and also wondered why anyone could EVER want a dataclass that is an enum. Nothing I've seen in the thread gives me any hint about that, really. On Sun, Jul 10, 2022 at 7:44 AM Barry Scott wrote: > > > > On 9 Jul 2022, at 22:53, Steve Jorgensen wrote: > > > > I don't thin

[Python-ideas] Re: Make dataclass aware that it might be used with Enum

2022-07-10 Thread Steve Jorgensen
David Mertz, Ph.D. wrote: > I've seen this thread, and also wondered why anyone could EVER want a > dataclass that is an enum. Nothing I've seen in the thread gives me any > hint about that, really. > On Sun, Jul 10, 2022 at 7:44 AM Barry Scott ba...@barrys-emacs.org wrote: > > On 9 Jul 2022, at 2

[Python-ideas] Re: Make dataclass aware that it might be used with Enum

2022-07-10 Thread Chris Angelico
On Mon, 11 Jul 2022 at 03:54, Steve Jorgensen wrote: > > David Mertz, Ph.D. wrote: > > I've seen this thread, and also wondered why anyone could EVER want a > > dataclass that is an enum. Nothing I've seen in the thread gives me any > > hint about that, really. > > On Sun, Jul 10, 2022 at 7:44 AM