Python handles globals badly.
Vladimir Ignatov
kmisoft at gmail.com
Wed Sep 2 20:16:47 EDT 2015
Hi,
my 0.02
I don't personally use globals. And don't like "object oriented" code
(my code more inclined toward "functional" style). But sometimes I
feel like passing various minor values (like settings) all around app
via regular parameters is just too much work. So I use
"pseudo-global" object which holds various stuff in its attributes.
And I pass that object around my code. But that is just one parameter,
not myriads of them.
Vladimir
http://itunes.apple.com/us/app/python-code-samples/id1025613117
More information about the Python-list
mailing list