instancemethod

Gert Cuykens gert.cuykens at gmail.com
Fri Jan 26 12:25:16 EST 2007


 > 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



More information about the Python-list mailing list