On Tue, 15 Mar 2022 at 04:02, wfdc <[email protected]> wrote: > > > A namedtuple IS a sequence. It is a tuple. They are deliberately designed > > to be drop-in replacements for tuples. > > I meant that they're not meant to be addressed as sequences. That's the whole > point of namedtuple: to avoid doing that. >
The whole point is that they are both sequences and structures. https://docs.python.org/3/library/collections.html#collections.namedtuple ChrisA _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/5QBJGA4UB3JJ34IULQSFHTBEZGBEFV7U/ Code of Conduct: http://python.org/psf/codeofconduct/
