On Sat, Apr 30, 2022 at 6:40 PM Steven D'Aprano <st...@pearwood.info> 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 feature. > no -- it's about only a small part of that. > > I don't think of dataclasses as "mutable namedtuples with defaults" at > all. > What do you think of them as? > I answered that in the next line, that you quote. > > > But do think they are for classes that are primarily about storing a > > defined set of data. > > Ah, mutable named tuples, with or without defaults? :-) > well, no. - the key is that you can add other methods to them, and produce all sort of varyingly complex functionality. I have done that myself. > Or possibly records/structs. > nope, nope, and nope. But anyway, the rest of my post was the real point, and we're busy arguing semantics here. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/FASJHCH5OV453YGZAFAJ5GHGKS45MVII/ Code of Conduct: http://python.org/psf/codeofconduct/