> > 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
"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
> 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
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
"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
... 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