#11115: Rewrite cached_method in Cython
-----------------------------------------------------+----------------------
   Reporter:  SimonKing                              |          Owner:  jason   
                        
       Type:  enhancement                            |         Status:  
needs_review                    
   Priority:  major                                  |      Milestone:  
sage-4.7.2                      
  Component:  misc                                   |       Keywords:  
category cython cache           
Work_issues:  rebase relative to #11815              |       Upstream:  N/A     
                        
   Reviewer:  Nicolas M. ThiƩry, Andrey Novoseltsev  |         Author:  Simon 
King                      
     Merged:                                         |   Dependencies:  #9976 
#11298 #11342 #9138 #11815
-----------------------------------------------------+----------------------

Comment(by vbraun):

 How is one now supposed to find out whether a function without arguments
 is cached?
 {{{
 sage: class Foo:
 ...       def __init__(self):
 ...           pass
 ...       @cached_method
 ...       def f(self):
 ...           return self._x*z+y
 ...
 sage: a = Foo()
 sage: a.f.is_in_cache()
 Traceback (most recent call last):
 ...
 TypeError: 'NoneType' object is not callable
 }}}
 I haven't added the `sage_getdoc()` fixes yet to my patch queue, but I
 think this problem is unrelated.

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