Multiple modules with database access + general app design?
Frank Millman
frank at chagford.com
Fri Jan 20 07:14:44 EST 2006
Daniel Dittmar wrote:
> Frank Millman wrote:
> > I have subclassed threading.Thread, and I store a number of attributes
> > within the subclass that are local to the thread. It seems to work
> > fine, but according to what you say (and according to the Python docs,
> > otherwise why would there be a 'Local' class) there must be some reason
> > why it is not a good idea. Please can you explain the problem with this
> > approach.
>
> Your design is just fine. If you follow the thread upwards, you'll
> notice that I encouraged the OP to pass everything by parameter.
>
Many thanks, Daniel
Frank
More information about the Python-list
mailing list