Dear All,
I just came acreoss the following strange behavior:
{{{
sage: from sage.rings.polynomial.multi_polynomial_libsingular import
MPolynomialRing_libsingular
# This works as expected
sage: MPolynomialRing_libsingular(QQ, 2, ['x','y'], 'degrevlex')
Multivariate Polynomial Ring in x, y over Rational Field
# But this crashes sage with a segmentation fault and core dump
sage: class Test(MPolynomialRing_libsingular):
....: pass
sage: Test(QQ, 2, ['x','y'], 'degrevlex')
}}}
At first I thought it might be something related to the fact that
MPolynomialRing_libsingular is a cython class but this other example works as
one would expect:
{{{
sage: from sage.rings.polynomial.pbori import BooleanPolynomialRing
# As expected
sage: BooleanPolynomialRing(2, ['x','y'], 'degrevlex')
Boolean PolynomialRing in x, y
# As expacted
sage: class Test2(BooleanPolynomialRing):
....: pass
sage: Test2(2, ['x','y'], 'degrevlex')
Boolean PolynomialRing in x, y
}}}
Am I missing something?
Thanks
S.
--
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.