> > Along with this idea, maybe `namedtuple` should became a type (not just a > callable as it is now) for classes produced by calling `namedtuple()`. The > `namedtuple` type could in turn inherit from `tuple` and from `Record` (or > `Struct` or whatever name is decided for that). >
See Raymond Hettinger's comment about doing something like that: https://bugs.python.org/msg74136 It is a key feature for named tuples that they are exactly equivalent to a > hand-written class. So unless the core devs are given a very good reason to do that, it is definitely not going to happen.
_______________________________________________ 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/MC26Y7SPAPDIHG4YZRH32QKAQVN6WE5T/ Code of Conduct: http://python.org/psf/codeofconduct/
