Use list name as string

Rhodri James rhodri at wildebst.demon.co.uk
Thu Feb 5 20:03:56 EST 2009


On Thu, 05 Feb 2009 03:32:59 -0000, Vincent Davis  
<vincent at vincentdavis.net> wrote:

> "The problem is you seem to be thinking in terms of objects having names.
> They don't.  Names have objects."I agree this is my problem. This is not
> correct terminology then?
> The name of the object is anobject

No.  The name of the object is a name.  It doesn't really exist as an
object at all.

As others have said, if you really want this information you'll need to
write your own class with a "name" attribute, and assign a suitable string
to it.

-- 
Rhodri James *-* Wildebeeste Herder to the Masses



More information about the Python-list mailing list