how do you get the name of a dictionary?
Fredrik Lundh
fredrik at pythonware.com
Tue Aug 22 02:16:37 EDT 2006
jojoba wrote:
> im quite surprised at the arrogance laid out by some of the above
> posters:
>
> However, does it not seem reasonable to ask python:
>
> Given a dicitionary, Banana = {}
> return one or more strings,
> where each string is the name(s) of the reference(s) to Banana.
>
> why is this not sane?!?!
> what am i missing here?
Python's object model. an object has a value, a type, and an identity,
but no name.
required reading:
http://tinyurl.com/gxrdr (relevant faq entry)
http://effbot.org/zone/python-objects.htm
http://www.python.net/crew/mwh/hacks/objectthink.html
</F>
More information about the Python-list
mailing list