Get the instance name from a list by Reflection

Carsten Haese carsten at
Sat Oct 20 22:22:30 CEST 2007

On Sat, 2007-10-20 at 21:10 +0200, sccs cscs wrote:
> Hello,
> I cannot find into documentation how to get the instance name.

That's because this is, in general, impossible. An object can have any
number of names, even zero names, and an object doesn't know which names
it has.

Why do you think you need to find out an object's name?

Carsten Haese

More information about the Python-list mailing list