-
-
Notifications
You must be signed in to change notification settings - Fork 674
Open
Description
The base class Ring
defines base_extend()
, but the implementation needs to be overridden in the derived class MPolynomialRing
:
sage: sage: P.<x,y,z> = PolynomialRing(QQ,'x, y, z'); P
Multivariate Polynomial Ring in x, y, z over Rational Field
sage: P.base_extend(CC)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/home/vbraun/opt/sage-4.5.3/devel/sage-main/<ipython console> in <module>()
/home/vbraun/Sage/sage/local/lib/python2.6/site-packages/sage/rings/ring.so in sage.rings.ring.Ring.base_extend (sage/rings/ring.c:3190)()
TypeError: no base extension defined
The patch implements the override and adds documentation.
Component: commutative algebra
Author: Volker Braun
Issue created by migration from https://trac.sagemath.org/ticket/9902