3 ms·
these can be more memory-efficient than classes or dictionaries. there was a point a while back where python added __slots__ to classes to help with this; and
by awinter-py 2y ago
these can be more memory-efficient than classes or dictionaries.
there was a point a while back where python added __slots__ to classes to help with this; and in practice these days the largest systems are using numpy if they're in python at all
not sure what modern versions do. but in the olden days, if you were creating lots of small objects, tuples were a low-overhead way to do it