> class Obj(object): > pass > > toto = tutu = tata = titi = Obj() > > What's an "instance name" ? > > -- > http://mail.python.org/mailman/listinfo/python-list
i would say __object__.__name__[3] == toto And if your obj is a argument like something(Obj()) i would say __object__.__name__[0] == 0x2b7bd17e9910 -- http://mail.python.org/mailman/listinfo/python-list