descriptors for container items
filerba at softhome.net
Sun Sep 4 05:43:36 CEST 2005
> > If I do that, the attributes (that was a stupid name for me to
> > and children would have to not share any names with each other,
> Since multiple objects can indeed have duplicate attribute names, and
> duplication is rampant in Python, I am not sure what you mean.
felons['@class'] = 'capital'
felons.class -> SyntaxError
I thought I had my previous example down to:
, but of course that tries to subscript a string with a string; which
might be an interesting idiom for substring searching, as long as it
never returned -1.
More information about the Python-list