[Python-Dev] Re: Revised Proposal: thread.get_dict
Edward Loper
edloper at gradient.cis.upenn.edu
Wed Jun 30 15:16:38 EDT 2004
Is this also intended for use as a base class? In particular, it seems
like if I have a class Foo, then I can make a thread-local version with
the following (as long as Foo doesn't rely on overriding
__getattribute__/__setattr__).
class LocalFoo(local, Foo): pass
Is that right? (I can see how it works in the Python implementation,
but don't know enough about extensions to see if that translates
directly to the c implementation.)
Actually, does local.__init__() need a call to super(self,
local).__init__() to make this work?
-Edward
More information about the Python-Dev
mailing list