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