Finding the instance reference of an object

Michele Simionato michele.simionato at gmail.com
Thu Oct 16 10:57:18 EDT 2008


On Oct 16, 4:01 pm, Astley Le Jasper <Astley.lejas... at gmail.com>
wrote:
> Sorry for the numpty question ...
>
> How do you find the reference name of an object?
>
> So if i have this
>
> bob = modulename.objectname()
>
> how do i find that the name is 'bob'


This is a FAQ:

http://www.python.org/doc/faq/programming/#how-can-my-code-discover-the-name-of-an-object



More information about the Python-list mailing list