Skip to content

Commit 4f0704b

Browse files
author
Matthias Koeppe
committed
src/sage/structure: sage -fixdoctests --only-tags
1 parent 7a65d8f commit 4f0704b

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/sage/structure/coerce.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,10 +1871,10 @@ cdef class CoercionModel:
18711871
Check that :trac:`18221` is fixed::
18721872
18731873
sage: # needs sage.combinat sage.modules
1874-
sage: F.<x> = FreeAlgebra(QQ) # needs sage.combinat sage.modules
1875-
sage: x / 2 # needs sage.combinat sage.modules
1874+
sage: F.<x> = FreeAlgebra(QQ)
1875+
sage: x / 2
18761876
1/2*x
1877-
sage: cm.discover_action(F, ZZ, operator.truediv) # needs sage.combinat sage.modules
1877+
sage: cm.discover_action(F, ZZ, operator.truediv)
18781878
Right inverse action by Rational Field on
18791879
Free Algebra on 1 generators (x,) over Rational Field
18801880
with precomposition on right by Natural morphism:

src/sage/structure/factorization.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,11 +1201,12 @@ def __call__(self, *args, **kwds):
12011201
12021202
EXAMPLES::
12031203
1204-
sage: R.<x,y> = FreeAlgebra(QQ, 2) # optional - sage.combinat sage.modules
1205-
sage: F = Factorization([(x,3), (y, 2), (x,1)]) # optional - sage.combinat sage.modules
1206-
sage: F(x=4) # optional - sage.combinat sage.modules
1204+
sage: # needs sage.combinat sage.modules
1205+
sage: R.<x,y> = FreeAlgebra(QQ, 2)
1206+
sage: F = Factorization([(x,3), (y, 2), (x,1)])
1207+
sage: F(x=4)
12071208
(1) * 4^3 * y^2 * 4
1208-
sage: F.subs({y:2}) # optional - sage.combinat sage.modules
1209+
sage: F.subs({y:2})
12091210
x^3 * 2^2 * x
12101211
12111212
sage: R.<x,y> = PolynomialRing(QQ, 2)

src/sage/structure/sage_object.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ cdef class SageObject:
9595
Real numbers are not Python classes, so rename is not supported::
9696
9797
sage: a = 3.14
98-
sage: type(a) # optional - sage.rings.real_mpfr
98+
sage: type(a) # needs sage.rings.real_mpfr
9999
<... 'sage.rings.real_mpfr.RealLiteral'>
100-
sage: a.rename('pi') # optional - sage.rings.real_mpfr
100+
sage: a.rename('pi') # needs sage.rings.real_mpfr
101101
Traceback (most recent call last):
102102
...
103103
NotImplementedError: object does not support renaming: 3.14000000000000

0 commit comments

Comments
 (0)