4 ms·
It can be a cute hack to get around the absence of static variables. Lists have other quirks related to mutability; there are other obscure Pythonisms that use
by etal 18y ago
It can be a cute hack to get around the absence of static variables.
Lists have other quirks related to mutability; there are other obscure Pythonisms that use this. If you want a nice magic-free immutable container, tuples are a better bet.