Skip to content Skip to sidebar Skip to footer
Showing posts with the label Namedtuple

Weird Mro Result When Inheriting Directly From Typing.namedtuple

I am confused why FooBar.__mro__ doesn't show like the above two. I still don't know why a… Read more Weird Mro Result When Inheriting Directly From Typing.namedtuple

Why Doesn't The Namedtuple Module Use A Metaclass To Create Nt Class Objects?

I spent some time investigating the collections.namedtuple module a few weeks ago. The module uses … Read more Why Doesn't The Namedtuple Module Use A Metaclass To Create Nt Class Objects?