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

Re: descriptors for container items

2005-09-03 Thread Terry Reedy
"Brock Filer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> 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 c

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

Re: descriptors for container items

2005-09-02 Thread bruno modulix
Terry Reedy wrote: > "Brock Filer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>countries['us']['Colorado']['Denver']['@population'] >> >>This is going to be used in user-input formulae, so I'm willing to do a >>lot of work for minor beautifications. I'd like to be able to sa

Re: descriptors for container items

2005-09-01 Thread Terry Reedy
"Brock Filer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > countries['us']['Colorado']['Denver']['@population'] > > This is going to be used in user-input formulae, so I'm willing to do a > lot of work for minor beautifications. I'd like to be able to say (I > know, the quotes ar

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