Hi!

I would like to create a Python class that inherits from
MPolynomialRing_libsingular, but the obvious thing to do crashes:

sage: from sage.rings.polynomial.multi_polynomial_libsingular import 
MPolynomialRing_libsingular
sage: class SMF( MPolynomialRing_libsingular ): pass                            
          
sage: SMF(QQ,3,['a','b','c'])
------------------------------------------------------------------------
/home/king/Sage/git/sage/local/lib/libcsage.so(print_backtrace+0x3b)[0xb6f13c41]
/home/king/Sage/git/sage/local/lib/libcsage.so(sigdie+0x1c)[0xb6f13dcf]
/home/king/Sage/git/sage/local/lib/libcsage.so(sage_signal_handler+0x20f)[0xb6f13584]
linux-gate.so.1(__kernel_sigreturn+0x0)[0xb774d400]
/home/king/Sage/git/sage/local/lib/libsingular.so(_Z6p_NSetP7snumberP9sip_sring+0x19)[0xb2e81589]
...

Creating an extension (cdef) class inheriting from
MPolynomialRing_libsingular does work.

I don't understand what is the problem with the Python class. Please enlighten 
me!

Best regards,
Simon

-- 
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 post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to