ethical questions about global variables
Дамјан Георгиевски
gdamjan at gmail.com
Tue Dec 16 19:13:48 EST 2008
> By "per-class-instance variables", you are talking
> about instance attributes? I.e. "self.use_gmt_times"?
> I don't see much difference between global variables
> and instance attributes.
using global variable in modules makes the module not Thread-safe
Using a instance attribute allows more threads to each have a separate instance with it's own config.
--
дамјан ( http://softver.org.mk/damjan/ )
Today we create the legacy of tomorrow.
More information about the Python-list
mailing list