Skip to content

Commit 48e8294

Browse files
author
Matthias Koeppe
committed
src/sage/matrix/constructor.pyx: Doctest cosmetics
1 parent 8b80da1 commit 48e8294

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/sage/matrix/constructor.pyx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ def matrix(*args, **kwds):
238238
sage: M[0] = [9,9,9]
239239
Traceback (most recent call last):
240240
...
241-
ValueError: matrix is immutable; please change a copy instead (i.e., use copy(M) to change a copy of M).
241+
ValueError: matrix is immutable; please change a copy instead
242+
(i.e., use copy(M) to change a copy of M).
242243
243244
TESTS:
244245
@@ -509,7 +510,7 @@ def matrix(*args, **kwds):
509510
A ring and a numpy array::
510511
511512
sage: # needs numpy
512-
sage: n = numpy.array([[1,2,3], [4,5,6], [7,8,9]],'float32')
513+
sage: n = numpy.array([[1,2,3], [4,5,6], [7,8,9]], 'float32')
513514
sage: m = matrix(ZZ, n); m; m.parent()
514515
[1 2 3]
515516
[4 5 6]

0 commit comments

Comments
 (0)