properties + types, implementing meta-class desciptors elegantly?

Mike C. Fletcher mcfletch at rogers.com
Sun Jul 20 12:47:52 CEST 2003


Aahz wrote:

>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?
>
Not really, I want them to be properties of the class, and would prefer 
that they *not* show up in the instances.  That said, I can deal with it 
if they do show up in the instances.

Enjoy,
Mike

_______________________________________
  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://members.rogers.com/mcfletch/








More information about the Python-list mailing list