Extracting name strings from assigned objects

Shannon Mayne shangach at gmail.com
Tue Oct 28 12:23:46 EDT 2008


I would like to ask how one might obtain the assigned name of an
assigned object as a string. I would like to use object names as an
algorithmic input.


To demonstrate... So if i have:

>>foo = {}

what can I do to the object 'foo' so as to return the string 'foo'?

Thanks!



More information about the Python-list mailing list