In <[EMAIL PROTECTED]>, Bjoern Schliessmann wrote:

> Bruno Desthuilliers wrote:
> 
>> class Toto(object):
>>      pass
>> 
>> print Toto.__name__
> 
> Okay, I revoke my statement and assert the opposite.
> 
> But what's it (__name__) good for?

As objects don't know to which name they are bound, that's a good way to
give some information in stack traces or when doing introspection.

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to