descriptors for container items

B

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 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 :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top