how do you get the name of a dictionary?

Robert Kern robert.kern at gmail.com
Wed Aug 23 12:55:56 EDT 2006


jojoba wrote:
> 
> Fredrik Lundh wrote:
>> the fact that despite all attempts to explain how things work, you're
>> still haven't realized that if you want the names of things, you should
>> pass *namespaces* to your object viewer, not individual objects.
> 
> And what im saying is that isnt it silly that we need pass an entire
> namespace, when a much simpler notion would be to have each object know
> its own name(s) (even if that name doesnt exist).

No, it's silly to avoid a very well-defined, heavily optimized strategy used 
everywhere in the language in favor of a new, vague strategy that is usually 
uninformative and frequently undefined.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco




More information about the Python-list mailing list