how do you get the name of a dictionary?

BartlebyScrivener rpdooling at gmail.com
Fri Aug 18 22:57:11 EDT 2006


Tim Chase wrote:
> How would you ask for the object?
>
>  >>> print get_name(banana)
>
> you might as well write
>
>  >>> print "banana"
>
Or there used to be a guy in this group who said it was like asking a
cat for its name. He headbanged himself unconscious though, or so they
say.

http://tinyurl.com/hql6d 

rd




More information about the Python-list mailing list