On Tue, 2006-08-22 at 12:34, jojoba wrote: > Hello again, > > Fredrick said: > > > Python's object model. an object has a value, a type, and an identity, > > but no name. > > I say: > > Thank you Fredrick for the reply! > However, although python's object model does not currently support what > i am asking for, how difficult would it be to assign a string name(s) > to an object upon creation (and upon referencing)? > > please note: > i don't want to do anything sophisticated with this, i am really only > looking for a TITLE for my dictionary when i throw it in a tree editor > that i have built. And i do realize that its not possible now. I am > just pressing a point here.
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. -- http://mail.python.org/mailman/listinfo/python-list