By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,001 Members | 1,262 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,001 IT Pros & Developers. It's quick & easy.

descriptors for container items

P: n/a
> I personally would first try to dump the quotes and use standard
attributes -- -- and the __get/set/delattr__

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 object's regular attrs, or python keywords.

I toyed with the idea of having __div__ create a descriptor, assign it
to a temporary attr, and access that. But then I realized that the
children should never be directly assigned to anyways. I can live with
one set of brackets at the end of the expression.

__methods__ are delightfully evil :-)

Sep 3 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.