how do you get the name of a dictionary?

Hendrik van Rooyen mail at microcorp.co.za
Wed Aug 23 02:31:21 EDT 2006


 "jojoba" <jojoba12 at hotmail.com> Wrote:

| > At the risk of stating the obvious, why don't you simply add a parameter
| > for the title in the invocation of the tree editor? I.e. instead of
| > invoke_tree_editor(somedict)
| > do
| > invoke_tree_editor(somedict, "somedict")
| > HTH,
| > Carsten.
|
|
| Thanks Carsten.
| This would indeed allow me to assign a title for my dicitonaries, but i
| am looking for something more general......
| specfically:
| given any dictionary, get a name for it.
|
| But yeah, your way would totally work!
| Thanks,
| jojoba
|

At the risk of asking the even more obvious - "given any dictionary" - How is it
given - just print whatever it is that causes you to believe that you are
dealing with a dictionary..

- Hendrik




More information about the Python-list mailing list