On Mon, Apr 23, 2012 at 05:59:04AM -0700, Simon King wrote:
> In CustomisationMetaclass, it should not be needed to explicitly state
> which methods are to be customised. Instead, CustomisationMetaclass
> should look if it finds a method named "__class<bla>__" and would
> *automatically* customize type.__bla__.
> 
> Hence,
>    class MyClass(Parent):
>        __metaclass__ = CustomisationMetaclass
>        @staticmethod
>        def __classadd__(...
> should suffice.

I like this variant because it encapsulates the technical metaclass
details. So we can easily change the implementation later on if we
change our mind or find a better approach.

Cheers,
                                Nicolas
--
Nicolas M. ThiƩry "Isil" <nthi...@users.sf.net>
http://Nicolas.Thiery.name/

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to