#11115: Rewrite cached_method in Cython
-------------------------------------------------------------------+--------
   Reporter:  SimonKing                                            |          
Owner:  jason                                       
       Type:  enhancement                                          |         
Status:  needs_work                                  
   Priority:  major                                                |      
Milestone:  sage-pending                                
  Component:  misc                                                 |       
Keywords:  category cython cache                       
Work_issues:                                                       |       
Upstream:  N/A                                         
   Reviewer:  Nicolas M. ThiƩry, Andrey Novoseltsev, Volker Braun  |         
Author:  Simon King                                  
     Merged:                                                       |   
Dependencies:  #9976, #11298, #11342, #9138, #11815, #11972
-------------------------------------------------------------------+--------
Changes (by jdemeyer):

  * status:  needs_review => needs_work


Comment:

 There are some problems with the new Cython (#11761, to be merged in
 sage-4.8.alpha1), the following fails:
 {{{
 sage -t  -force_lib devel/sage/sage/misc/cachefunc.pyx
 **********************************************************************
 File "/mnt/usb1/scratch/jdemeyer/merger/sage-4.8.alpha2/devel/sage-
 main/sage/misc/cachefunc.pyx", line 97:
     sage: cython('\n'.join(cython_code))
 Exception raised:
     Traceback (most recent call last):
       File
 "/mnt/usb1/scratch/jdemeyer/merger/sage-4.8.alpha2/local/bin/ncadoctest.py",
 line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File
 "/mnt/usb1/scratch/jdemeyer/merger/sage-4.8.alpha2/local/bin/sagedoctest.py",
 line 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File
 "/mnt/usb1/scratch/jdemeyer/merger/sage-4.8.alpha2/local/bin/ncadoctest.py",
 line 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_0[18]>", line 1, in <module>
         cython('\n'.join(cython_code))###line 97:
     sage: cython('\n'.join(cython_code))
       File "cython_c.pyx", line 61, in sage.misc.cython_c.cython
 (sage/misc/cython_c.c:688)
         sage.server.support.cython_import_all(tmpfile, globals(),
       File
 "/mnt/usb1/scratch/jdemeyer/merger/sage-4.8.alpha2/local/lib/python/site-
 packages/sage/server/support.py", line 473, in cython_import_all
         create_local_c_file=create_local_c_file)
       File
 "/mnt/usb1/scratch/jdemeyer/merger/sage-4.8.alpha2/local/lib/python/site-
 packages/sage/server/support.py", line 450, in cython_import
         **kwds)
       File
 "/mnt/usb1/scratch/jdemeyer/merger/sage-4.8.alpha2/local/lib/python/site-
 packages/sage/misc/cython.py", line 403, in cython
         raise RuntimeError, "Error converting %s to C:\n%s\n%s"%(filename,
 log, err)
     RuntimeError: Error converting
 
/scratch/jdemeyer/merger/sage-4.8.alpha2/home/.sage//temp/sage.math.washington.edu/5609//tmp_2.spyx
 to C:


     Error compiling Cython file:
     ------------------------------------------------------------
     ...
     include "cdefs.pxi"
     from sage.all import cached_method, cached_in_parent_method, Category
     class MyCategory(Category):
         @cached_method
         def super_categories(self):
             return [Objects()]
                           ^
     ------------------------------------------------------------

 
_scratch_jdemeyer_merger_sage_4_8_alpha2_home__sage_temp_sage_math_washington_edu_5609_tmp_2_spyx_0.pyx:10:23:
 undeclared name not builtin: Objects


 **********************************************************************

 }}}

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