I would actually disadvice the use of namedtuple in favor of dataclass (or at least NamedTuple). This is mainly for typehinting (which is a topic completely missing from the article.), but also for default parameter, mutability, and inheritance. Please, don't promot namedtuple.
Hey /u/CommonMisspellingBot, just a quick heads up: Your spelling hints are really shitty because they're all essentially "remember the fucking spelling of the fucking word".
And your fucking delete function doesn't work. You're useless.
3
u/MegaIng Apr 06 '19 edited Apr 06 '19
I would actually disadvice the use of
namedtuplein favor ofdataclass(or at leastNamedTuple). This is mainly for typehinting (which is a topic completely missing from the article.), but also for default parameter, mutability, and inheritance. Please, don't promotnamedtuple.