Drew DeVault
Follow

Friendly reminder that NamedTuple is a cool thing in Python

@sir
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
Mastodon

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