print names of dictionaries

jay graves jaywgraves at gmail.com
Wed Apr 26 17:31:54 EDT 2006


BartlebyScrivener wrote:
> Still new. Learning attributes and functions and so on.
> Sorry if this is obvious, but if I'm defining a function for some
> dictionaries, how can I print just the names of the dictionaries?

Short answer:  You can't.

http://pyfaq.infogami.com/how-can-my-code-discover-the-name-of-an-object

...
Jay Graves




More information about the Python-list mailing list