Skip to content

Commit 2480b61

Browse files
committed
Changed RealIntervalField_class.gens() to return a tuple, modified documentation and examples accordingly
1 parent 721a152 commit 2480b61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sage/rings/real_mpfi.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -952,14 +952,14 @@ cdef class RealIntervalField_class(sage.rings.abc.RealIntervalField):
952952

953953
def gens(self):
954954
"""
955-
Return a list of generators.
955+
Return a tuple of generators.
956956
957957
EXAMPLES::
958958
959959
sage: RIF.gens()
960-
[1]
960+
(1,)
961961
"""
962-
return [self.gen()]
962+
return (self.gen(),)
963963

964964
def _is_valid_homomorphism_(self, codomain, im_gens, base_map=None):
965965
"""

0 commit comments

Comments
 (0)