Question about scope

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Sun Oct 26 16:35:06 EDT 2008


Lawrence D'Oliveiro a écrit :
> In message <0110f0fd$0$20657$c3e8da3 at news.astraweb.com>, Steven D'Aprano
> wrote:
> 
>> Why is it a class attribute instead of an instance attribute?
> 
> Singleton class.

Possibly, yes (and I believe it is the case, but...). Or the OP doesnt 
have a good enough understanding of Python's object model, in which case 
Steven's question makes sense.



More information about the Python-list mailing list