PyMyth: Global variables are evil... WRONG!
Tim Chase
python.list at tim.thechases.com
Tue Nov 12 06:32:09 EST 2013
On 2013-11-11 20:46, Rick Johnson wrote:
> Yes, and i agree. But you cannot "hide" everything. There
> will always be a need to share information.
You may not be able to (or want to) hide everything, but sharing
should at least happen over defined protocols (functions/methods).
Otherwise, you wander off into the weeds of hackery and
monkey-patching which makes maintaining the code a lot hairier.
-tkc
More information about the Python-list
mailing list