how do you get the name of a dictionary?

Steve Holden steve at holdenweb.com
Fri Aug 18 23:18:35 EDT 2006


John Salerno wrote:
> Fredrik Lundh wrote:
> 
>>Andy Terrel wrote:
>>
>>
>>>for i in dir():
>>>     if eval(i) == Banana:
>>>             print i
>>
>>(sound of head hitting desk)
>>
>></F>
>>
> lol

Right. Plus it's fun to imagine the effbot hitting itself as hard as 
some people would obviously have liked to hit it in the past :-)

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd          http://www.holdenweb.com
Skype: holdenweb       http://holdenweb.blogspot.com
Recent Ramblings     http://del.icio.us/steve.holden




More information about the Python-list mailing list