On Mon, Jul 29, 2019 at 6:55 PM Ricky Teachey <ri...@teachey.org> wrote: [Steven]
> If the core developers don't consider namedtuples important enough to >> get syntactic support, I doubt that namespaces will. >> > [Ricky] > This by itself is pretty convincing. > Except it's wrong. The successor of namedtuple is typing.NamedTuple which supports this syntactically. From the [docs]( https://docs.python.org/3/library/typing.html#typing.NamedTuple): ``` class Employee(NamedTuple): name: str id: int ``` -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him/his **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>
_______________________________________________ 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/WTBXYJJ7CSGDLLJHHPHSH5ZCCA4C7QEP/ Code of Conduct: http://python.org/psf/codeofconduct/