#11794: Optional cythonised cached hash for Python classes
---------------------------+------------------------------------------------
   Reporter:  SimonKing    |          Owner:  jason         
       Type:  enhancement  |         Status:  needs_review  
   Priority:  major        |      Milestone:  sage-4.7.2    
  Component:  misc         |       Keywords:                
Work_issues:               |       Upstream:  N/A           
   Reviewer:               |         Author:  Simon King    
     Merged:               |   Dependencies:  #11115, #11791
---------------------------+------------------------------------------------

Comment(by SimonKing):

 The problem is solved with the latest patch version:
 {{{
 sage: from sage.misc.fast_hash import FastHashMetaclass, HashWithCache
 sage: from sage.structure.element import Element
 sage: C = Objects().parent_class
 sage: M =
 FastHashMetaclass('tmp',(FastHashMetaclass(C),FastHashMetaclass(Element)),{})
 sage: M.mro()
 [<class '__main__.tmp'>, <type 'sage.misc.fast_hash.HashWithCache'>,
 <class '__main__.tmp'>, <class
 'sage.categories.objects.Objects.parent_class'>, <type
 'sage.structure.element.Element'>, <type
 'sage.structure.sage_object.SageObject'>, <type 'object'>]
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11794#comment:6>
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