4 ms·
I am not saying that python globals are a great idea — just that they are not as horrible as they are in case of C and they they do have their uses — they just
by __sr__ 8y ago
I am not saying that python globals are a great idea — just that they are not as horrible as they are in case of C and they they do have their uses — they just need to be used carefully. Of course, python makes it impossible to truly hide anything. In an ideal world, module level globals won’t be mutable outside the module.