3 ms·
Similarly, in CPython function-local variables are faster to access than class or module attributes (with the usual bunch of exceptions you always have in Pytho
by blattimwind 9y ago
Similarly, in CPython function-local variables are faster to access than class or module attributes (with the usual bunch of exceptions you always have in Python).
This probably applies to similar languages (like Ruby) as well.