Drew DeVault

Friendly reminder that NamedTuple is a cool thing in Python

It is! However there are cases where the initialising overhead hurts (every new namedtuple() is roughly as expensive as an import, perfectly fine on the module scope, deadly in a loop).

Sign in to participate in the conversation

cmpwn.com is a private Mastodon instance for friends of SirCmpwn.