[Zope] thread-safe xml request client
Dieter Maurer
dieter@handshake.de
Thu, 15 May 2003 20:21:21 +0200
Scott Burton wrote at 2003-5-14 12:10 -0700:
> ...
> From the Thread Safety
> article I took "Variables defined in classes" to be any variable.
A "Variable defined in a class" is one defined directly in the
class scope, like so:
class ...:
....
this_is_a_class_variable = ...
....
Variables defined in methods (inside the class) or local variables
of the method and not class variables. They are thread safe.
Instance variables/attributes (defined via "self.instance_attribute = ...")
are no class variables. In Zope, they are usually thread safe (provided
the instance is a persistent Zope object).
Reading the "zodb3.pdf" document may provide more information...
Dieter