Get the instance name from a list by Reflection

Gabriel Genellina gagsl-py2 at
Sun Oct 21 00:44:28 CEST 2007

En Sat, 20 Oct 2007 16:10:34 -0300, sccs cscs <zorg724 at> escribi�:

> I cannot find into documentation how to get the instance name. I found  
> the attributes __dict__,__class__ ,__bases__ __name__ ,
> but if i have the code:

In general, you can't. There is no such thing as "the instance name".

Gabriel Genellina

More information about the Python-list mailing list