descriptors for container items

2005-09-01 Thread Brock Filer
... or something like that. I have an XMLish data structure whose nodes' __get/set/del item__ methods resolve as: node['foo'] -> node.children['foo'] node['@bar'] -> node.attributes['bar'] so you can say: countries['us']['Colorado']['Denver']['@population'] This is going to be used in user-i

descriptors for container items

2005-09-03 Thread Brock Filer
> I personally would first try to dump the quotes and use standard > attributes -- countries.us.Colorado... -- and the __get/set/delattr__ > methods. If I do that, the attributes (that was a stupid name for me to choose) and children would have to not share any names with each other, with the

descriptors for container items

2005-09-03 Thread Brock Filer
> > If I do that, the attributes (that was a stupid name for me to > choose) > > and children would have to not share any names with each other, > > Since multiple objects can indeed have duplicate attribute names, and > such > duplication is rampant in Python, I am not sure what you mean. felo