namedtuple is just a thin wrapper around tuple. It <i>literally</i> constructs a class definition that sub-classes tuple as a string and then executes it. You can see the string template that it uses here[1]. If you&#x27;re interested in something like namedtuple there are other[2] things[3] you can use depending on your use-case.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;python&#x2F;cpython&#x2F;blob&#x2F;master&#x2F;Lib&#x2F;collections&#x2F;__init__.py#L304" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;python&#x2F;cpython&#x2F;blob&#x2F;master&#x2F;Lib&#x2F;collection...</a><p>[2] <a href="http:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;2648186" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;2648186</a><p>[3] <a href="https:&#x2F;&#x2F;pypi.python.org&#x2F;pypi&#x2F;frozendict&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pypi.python.org&#x2F;pypi&#x2F;frozendict&#x2F;</a>