Skip to content

Commit 77a75ea

Browse files
committed
sequence -> iterable
1 parent cd1a782 commit 77a75ea

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/sage/rings/generic.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ProductTree:
4343
4444
INPUT:
4545
46-
- ``leaves`` -- a sequence of elements in a common ring
46+
- ``leaves`` -- an iterable of elements in a common ring
4747
4848
EXAMPLES::
4949
@@ -197,9 +197,9 @@ def remainders(self, x):
197197

198198
def prod_with_derivative(pairs):
199199
r"""
200-
Given a list of pairs `(f, \partial f)` of ring elements, return
201-
the pair `(\prod f, \partial \prod f)`, assuming `\partial` is an
202-
operator obeying the standard product rule.
200+
Given an iterable of pairs `(f, \partial f)` of ring elements,
201+
return the pair `(\prod f, \partial \prod f)`, assuming `\partial`
202+
is an operator obeying the standard product rule.
203203
204204
This function is entirely algebraic, hence still works when the
205205
elements `f` and `\partial f` are all passed through some ring
@@ -209,7 +209,7 @@ def prod_with_derivative(pairs):
209209
210210
INPUT:
211211
212-
- ``pairs`` -- a sequence of tuples `(f, \partial f)` of elements
212+
- ``pairs`` -- an iterable of tuples `(f, \partial f)` of elements
213213
of a common ring
214214
215215
ALGORITHM: Repeated application of the product rule.

0 commit comments

Comments
 (0)