Drew DeVault is a user on cmpwn.com. You can follow them or interact with them if you have an account anywhere in the fediverse.
Drew DeVault @sir

Friendly reminder that NamedTuple is a cool thing in Python

· Web · 2 · 5

@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).