Message323383
> Raymond has resisted adding a base class to namedtuple. I believe the
> preferred way to identify a namedtuple is to look for a _fields member.
FWIW, that was also Guido's opinion as well. A named tuple is generic concept defined in the glossary as "Any tuple-like class whose indexable elements are also accessible using a named attribute". This includes user-defined classes, classes created by collections.namedtuple, and instances of structseq. The code generated by oollections.namedtuple was based on patterns already in widespread use at the time. |
|
Date |
User |
Action |
Args |
2018-08-10 18:40:52 | rhettinger | set | recipients:
+ rhettinger, eric.smith, NeilGirdhar, levkivskyi, alexdelorenzo |
2018-08-10 18:40:52 | rhettinger | set | messageid: <1533926452.47.0.56676864532.issue34363@psf.upfronthosting.co.za> |
2018-08-10 18:40:52 | rhettinger | link | issue34363 messages |
2018-08-10 18:40:52 | rhettinger | create | |
|