[Python-ideas] Re: Abstract dataclasses and dataclass fields

2023-12-22 Thread Greg Ewing
On 23/12/23 9:12 am, DL Neil via Python-ideas wrote: On 12/23/23 02:09, Eric V. Smith via Python-ideas wrote: You're better off discussing this on discuss.python.org as this mailing list is basically dead. It can't be dead - you're here! It's just resting! -- Greg

[Python-ideas] Re: Abstract dataclasses and dataclass fields

2023-12-22 Thread DL Neil via Python-ideas
On 12/23/23 09:51, Chris Angelico wrote: On Sat, 23 Dec 2023 at 07:13, DL Neil via Python-ideas wrote: On 12/23/23 02:09, Eric V. Smith via Python-ideas wrote: On 12/21/2023 4:38 PM, Steve Jorgensen wrote: I am finding that it would be useful to be able to define a dataclass that is an

[Python-ideas] Re: Abstract dataclasses and dataclass fields

2023-12-22 Thread Chris Angelico
On Sat, 23 Dec 2023 at 07:13, DL Neil via Python-ideas wrote: > > On 12/23/23 02:09, Eric V. Smith via Python-ideas wrote: > > On 12/21/2023 4:38 PM, Steve Jorgensen wrote: > >> I am finding that it would be useful to be able to define a dataclass that > >> is an abstract base class and define

[Python-ideas] Re: Abstract dataclasses and dataclass fields

2023-12-22 Thread DL Neil via Python-ideas
On 12/22/23 10:38, Steve Jorgensen wrote: I am finding that it would be useful to be able to define a dataclass that is an abstract base class and define some of its field as abstract. As I am typing this, I realize that I could presumably write some code to implement what I'm asking for.

[Python-ideas] Re: Abstract dataclasses and dataclass fields

2023-12-22 Thread DL Neil via Python-ideas
On 12/23/23 02:09, Eric V. Smith via Python-ideas wrote: On 12/21/2023 4:38 PM, Steve Jorgensen wrote: I am finding that it would be useful to be able to define a dataclass that is an abstract base class and define some of its field as abstract. As I am typing this, I realize that I could

[Python-ideas] Re: Abstract dataclasses and dataclass fields

2023-12-22 Thread Eric V. Smith via Python-ideas
On 12/21/2023 4:38 PM, Steve Jorgensen wrote: I am finding that it would be useful to be able to define a dataclass that is an abstract base class and define some of its field as abstract. As I am typing this, I realize that I could presumably write some code to implement what I'm asking for.