Perhaps we should take the energy that is going into this thread and direct it towards supporting keyword-only arguments in dataclasses, a discussion which is apparently struggling: https://github.com/python/cpython/pull/6238#issuecomment-584579729
On Mon, May 4, 2020 at 10:49 PM Lewis Ball <lrjb...@gmail.com> wrote: > I did think about data classes and although I haven't really used them > much they do seem to be for a different use case, for example they don't > support keyword-only args or positional-only args. I'm not sure if there > are any other differences. Maybe a data class which supported kW-only args > and pos-only args would suit my use case. > > On Mon, 4 May 2020, 21:19 Henk-Jaap Wagenaar, <wagenaarhenkj...@gmail.com> > wrote: > >> You are not the first to have this idea. Unless I am mistaken you might >> find what you are looking for in dataclasses which were added in Python 3.7: >> >> https://docs.python.org/3/library/dataclasses.html >> >
_______________________________________________ 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/5Y3QLLTVT6VXGGUPTLM3SH5PKL5R36AD/ Code of Conduct: http://python.org/psf/codeofconduct/