Skip to content

Commit c4bf7ae

Browse files
committed
Trac #21203 review issue 4: rename to coefficient ring
1 parent 38743c1 commit c4bf7ae

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

src/sage/combinat/k_regular_sequence.py

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ class kRegularSequenceSpace(RecognizableSeriesSpace):
252252
253253
- ``k`` -- an integer at least `2` specifying the base
254254
255-
- ``coefficients`` -- a (semi-)ring. If not specified (``None``),
256-
then the integer ring is used.
255+
- ``coefficient_ring`` -- a (semi-)ring.
257256
258257
- ``category`` -- (default: ``None``) the category of this
259258
space
@@ -273,7 +272,7 @@ class kRegularSequenceSpace(RecognizableSeriesSpace):
273272
Element = kRegularSequence
274273

275274
@classmethod
276-
def __normalize__(cls, k, coefficients=None, **kwds):
275+
def __normalize__(cls, k, coefficient_ring, **kwds):
277276
r"""
278277
Normalizes the input in order to ensure a unique
279278
representation.
@@ -285,18 +284,12 @@ def __normalize__(cls, k, coefficients=None, **kwds):
285284
sage: Seq2 = kRegularSequenceSpace(2, ZZ)
286285
sage: Seq2.category()
287286
Category of sets
288-
289-
::
290-
291-
sage: Seq2 is kRegularSequenceSpace(2)
292-
True
287+
sage: Seq2.alphabet()
288+
{0, 1}
293289
"""
294290
from sage.arith.srange import srange
295-
from sage.rings.integer_ring import ZZ
296-
if coefficients is None:
297-
coefficients = ZZ
298291
nargs = super(kRegularSequenceSpace, cls).__normalize__(
299-
coefficients, alphabet=srange(k), **kwds)
292+
coefficient_ring, alphabet=srange(k), **kwds)
300293
return (k,) + nargs
301294

302295
def __init__(self, k, *args, **kwds):

0 commit comments

Comments
 (0)