properties + types, implementing meta-class desciptors elegantly?
Aahz
aahz at pythoncraft.com
Sat Jul 19 21:05:56 EDT 2003
In article <mailman.1058660069.1164.python-list at python.org>,
Mike C. Fletcher <mcfletch at rogers.com> wrote:
>Aahz wrote:
>>In article <mailman.1058654317.6488.python-list at python.org>,
>>Mike C. Fletcher <mcfletch at rogers.com> wrote:
>>>
>>>Nope, I'm trying to make meta-classes which have rich properties. The
>>>particular project is a plug-in system, where the classes (the
>>>metaclass-instances) want to have all sorts of rich metadata associated
>>>with them in a way which meshes with the rest of the system (i.e. using
>>>a descriptor-based introspection mechanism).
>>
>>
>>Keeping in mind that I'm really not following this discussion all that
>>closely (because metaclasses give me headaches), are you trying to make
>>a *metaclass* that has properties or a *metaclass instance* (i.e. a
>>class) that has properties?
>
>Just the meta-class instances (classes). Wasn't sufficiently precise in
>my description, the properties are normally declared in the meta-class,
>but they are actually properties of the meta-class instances.
Next question: are you also trying to access the properties on class
instances?
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
This is Python. We don't care much about theory, except where it intersects
with useful practice. --Aahz
More information about the Python-list
mailing list