#7976: Extends __classcall__ to control inheritance
---------------------------------+------------------------------------------
   Reporter:  hivert             |       Owner:  hivert                
       Type:  enhancement        |      Status:  needs_review          
   Priority:  major              |   Milestone:  sage-4.3.2            
  Component:  categories         |    Keywords:  ClassCall, inheritance
     Author:  Florent Hivert     |    Upstream:  N/A                   
   Reviewer:  Nicolas M. ThiƩry  |      Merged:                        
Work_issues:                     |  
---------------------------------+------------------------------------------
Changes (by nthiery):

  * milestone:  => sage-4.3.2


Old description:

> This patch extends {{{ClasscallMetaclass}}} so that one can control the
> call of a class trough two different static methods:
>
>  - {{{__classcall__}}} which behave as usual and is inherited
>  - {{{__classcall__no_inherits}}} which is not called by derived classes
>
> If both exists the latter is used.

New description:

 This patch extends {{{ClasscallMetaclass}}} so that one can control the
 call of a class trough two different static methods:

  - {{{__classcall__}}} which behaves as usual and is inherited
  - {{{__classcall_private__}}} which is not called by derived classes

 If both exists the later is used.

 By the way it does some polishing of the code.

--

Comment:

 Please double check the quick review patch, and add '#7976:' in front of
 the patch description, and it's good to go!

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7976#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB
-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.


Reply via email to