[Python-3000] About "daemon" in threading module

Gregory P. Smith greg at krypto.org
Fri Sep 5 09:30:04 CEST 2008


On Thu, Sep 4, 2008 at 8:39 AM, Christian Heimes <lists at cheimes.de> wrote:
> Jesus Cea wrote:
>>
>> I would rather revert to the method style, or redo the class to avoid
>> new attribute creation, maybe via some "thread.__setattr__()" magic.
>
> Or maybe with __slots__ in the threading class. It'd also safe some memory
> and subclasses of Threading still work as expected.

Agreed.  This is what __slots__ is for.


More information about the Python-3000 mailing list