Skip to content

Commit 027875c

Browse files
committed
Changed SymmetricReductionStrategy.gens() to return a tuple, modified documentation and examples accordingly
1 parent 2480b61 commit 027875c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sage/rings/polynomial/symmetric_reduction.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ cdef class SymmetricReductionStrategy:
256256

257257
def gens(self):
258258
"""
259-
Return the list of Infinite Polynomials modulo which ``self`` reduces.
259+
Return the tuple of Infinite Polynomials modulo which ``self`` reduces.
260260
261261
EXAMPLES::
262262
@@ -269,9 +269,9 @@ cdef class SymmetricReductionStrategy:
269269
y_2*y_1^2,
270270
y_2^2*y_1
271271
sage: S.gens()
272-
[y_2*y_1^2, y_2^2*y_1]
272+
(y_2*y_1^2, y_2^2*y_1)
273273
"""
274-
return self._lm
274+
return tuple(self._lm)
275275

276276
def setgens(self, L):
277277
"""

0 commit comments

Comments
 (0)