I need some help with https://trac.sagemath.org/ticket/29139

If you load a cython file into a sage session the default cython directives 
are different from the directives on compile time. This might lead to 
different behaviour or errors, e.g. the following fails:

sage: %%cython
....: include "sage/data_structures/bitset.pxi"


If I understand correctly the cython directives while building sage are 
located in `src/sage_setup/command/sage_build_cython.py`:

153         self.cython_directives = dict( 
154             auto_pickle=False,                                         
               
155             autotestdict=False, 
156             cdivision=True,                                             
              
157             embedsignature=True,                                       
               
158             fast_getattr=True, 
159             language_level="3str", 
160             preliminary_late_includes_cy28=True,                       
               
161             profile=self.profile,                                       
              
162         )       

The directive when loading into sage are located in 
`src/sage/misc/cython.py`.

317     directives = dict(language_level=sys.version_info[0]) 

The error is caused by `cdivision=True` missing. Is it acceptable to add 
it? Which others should be added?

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/e1ada1ce-ccce-45d6-a8d5-40e24680b994o%40googlegroups.com.

Reply via email to