[Python-ideas] Re: Auto assignment of attributes

2022-04-30 Thread Pablo Alcain
On Sat, Apr 23, 2022, 1:11 PM Christopher Barker wrote: > On Sat, Apr 23, 2022 at 10:53 AM Pablo Alcain > wrote: > >> Overall, I think that not all Classes can be thought of as Dataclasses >> and, even though dataclasses solutions have their merits, they probably >> cannot be extended to most of

[Python-ideas] Re: Auto assignment of attributes

2022-04-30 Thread Steven D'Aprano
On Sat, Apr 23, 2022 at 12:11:07PM -0700, Christopher Barker wrote: > On Sat, Apr 23, 2022 at 10:53 AM Pablo Alcain wrote: > > > Overall, I think that not all Classes can be thought of as Dataclasses > > and, even though dataclasses solutions have their merits, they probably > > cannot be extende

[Python-ideas] Re: Auto assignment of attributes

2022-04-30 Thread Christopher Barker
On Sat, Apr 30, 2022 at 6:40 PM Steven D'Aprano wrote: > On Sat, Apr 23, 2022 at 12:11:07PM -0700, Christopher Barker wrote: > > Absolutely. However, this is not an "all Classes" question. > > Isn't it? I thought this was a proposal to allow any class to partake in > the dataclass autoassignment