Re: Extracting name strings from assigned objects

2008-10-28 Thread Steven D'Aprano
On Tue, 28 Oct 2008 09:23:46 -0700, Shannon Mayne wrote: > 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 ob

Re: Extracting name strings from assigned objects

2008-10-28 Thread Simon Brunning
2008/10/28 Shannon Mayne <[EMAIL PROTECTED]>: > I would like to ask how one might obtain the assigned name of an > assigned object as a string. That's in the FAQ: . -- Cheers, Simon B. [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Extracting name strings from assigned objects

2008-10-28 Thread Shannon Mayne
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! -- http://mail.python.o