Skip to content

Commit 721a152

Browse files
committed
Changed RealField_class.gens() to return a tuple, modified documentation and examples accordingly
1 parent 0ac1e7e commit 721a152

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sage/rings/real_mpfr.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -909,14 +909,14 @@ cdef class RealField_class(sage.rings.abc.RealField):
909909

910910
def gens(self):
911911
"""
912-
Return a list of generators.
912+
Return a tuple of generators.
913913
914914
EXAMPLES::
915915
916916
sage: RR.gens()
917-
[1.00000000000000]
917+
(1.00000000000000,)
918918
"""
919-
return [self.gen()]
919+
return (self.gen(),)
920920

921921
def _is_valid_homomorphism_(self, codomain, im_gens, base_map=None):
922922
"""

0 commit comments

Comments
 (0)